Note that there are some explanatory texts on larger screens.

plurals
  1. POiOS Authorize.net integration issue
    text
    copied!<p>I am developing iOS app, in which I have integrated authorize.net payment gateways using auth.net iOS API. I followed each and every steps which are mentioned in their doc. Now each time, when a transaction request is sent to auth.net server on live environment it gives me error (Code E00007) i.e. "User authentication failed due to invalid authentication values". I checked Login ID and Transaction Key and those are correct. Even I tried with Auth.net support person, but still it did not work out. The test enviroment and request were successful. But on Live env. it gives me the problem</p> <p>My code follows: For device registration: Here I have put XXXX.... instead of real transaction key and login id.</p> <pre><code>MobileDeviceRegistrationRequest *mobileDeviceRegistrationRequest = [MobileDeviceRegistrationRequest mobileDeviceRegistrationRequest]; mobileDeviceRegistrationRequest.mobileDevice.mobileDeviceId = [[[UIDevice currentDevice] uniqueIdentifier] stringByReplacingOccurrencesOfString:@"-" withString:@"_"]; mobileDeviceRegistrationRequest.mobileDevice.mobileDescription = @"iPhone"; mobileDeviceRegistrationRequest.anetApiRequest.merchantAuthentication.name = @"XXXXXXXXX"; mobileDeviceRegistrationRequest.anetApiRequest.merchantAuthentication.password = @"XXXXXXXXXXXXXX"; [AuthNet authNetWithEnvironment:ENV_LIVE]; AuthNet *an = [AuthNet getInstance]; [an mobileDeviceRegistrationRequest:mobileDeviceRegistrationRequest]; </code></pre> <p>After that the code for payment request:</p> <pre><code> MobileDeviceLoginRequest *mobileDeviceLoginRequest = [MobileDeviceLoginRequest mobileDeviceLoginRequest]; mobileDeviceLoginRequest.anetApiRequest.merchantAuthentication.name = @"XXXXX"; mobileDeviceLoginRequest.anetApiRequest.merchantAuthentication.password = @"XXXXXX"; mobileDeviceLoginRequest.anetApiRequest.merchantAuthentication.mobileDeviceId = [[[UIDevice currentDevice] uniqueIdentifier] stringByReplacingOccurrencesOfString:@"-" withString:@"_"]; // Set up an AuthNet instance. [AuthNet authNetWithEnvironment:ENV_LIVE]; AuthNet *an = [AuthNet getInstance]; [an setDelegate:self]; // Process a mobile device login request. [an mobileDeviceLoginRequest:mobileDeviceLoginRequest]; </code></pre> <p>But in the initial registering request I am receiving the failure with error code E00007. Any settings I missed?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload