Skip to content

Instantly share code, notes, and snippets.

@pulkitsinghal
Created March 25, 2012 00:33
Show Gist options
  • Select an option

  • Save pulkitsinghal/2190397 to your computer and use it in GitHub Desktop.

Select an option

Save pulkitsinghal/2190397 to your computer and use it in GitHub Desktop.
Unregistered device on AuthNet
2012-03-22 19:54:53.134 Reachability Flag Status: -R -----l- networkStatusForFlags
2012-03-22 19:54:53.136 paymentSuccessWithKey 999000111
2012-03-22 19:54:53.137 date == "03/22/12 07:54 PM" AND payKey == "999000111"
2012-03-22 19:54:53.141 name == "berkeley"
2012-03-22 19:54:53.143 The Store already exists.
2012-03-22 19:54:53.151 paymentLibraryExit
2012-03-22 19:54:54.613 Mobile Device Login Response
2012-03-22 19:54:54.614 <?xml version="1.0" encoding="utf-8"?><mobileDeviceLoginResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"><messages><resultCode>Error</resultCode><message><code>E00054</code><text>The mobile device is not registered with this merchant account.</text></message></messages></mobileDeviceLoginResponse>
namespace warning : xmlns: URI AnetApi/xml/v1/schema/AnetApiSchema.xsd is not absolute
ttp://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"
^
2012-03-22 19:54:54.615 Error = (null)
2012-03-22 19:54:54.615 Message:
Message.code = E00054
Message.text = The mobile device is not registered with this merchant account.
Message.description = (null)
2012-03-22 19:54:54.616 Messages:
Messages.resultCode = Error
Messages.message = (
"Message.code = E00054\nMessage.text = The mobile device is not registered with this merchant account.\nMessage.description = (null)\n"
)
2012-03-22 19:54:54.617 MerchantContact = MerchantContact.merchantName = (null)
MerchantContact.merchantAddress = (null)
MerchantContact.merchantCity = (null)
MerchantContact.merchantState = (null)
MerchantContact.merchantZip = (null)
MerchantContact.merchantPhone = (null)
2012-03-22 19:54:54.617 MobileDeviceLoginResponse: MobileDeviceLoginResponse.anetApiResponse = ANetApiResponse.refId = (null)
ANetApiResponse.messages = Messages.resultCode = Error
Messages.message = (
"Message.code = E00054\nMessage.text = The mobile device is not registered with this merchant account.\nMessage.description = (null)\n"
)
MobileDeviceLoginResponse.sessionToken = (null)
MobileDeviceLoginResponse.merchantContact = MerchantContact.merchantName = (null)
MerchantContact.merchantAddress = (null)
MerchantContact.merchantCity = (null)
MerchantContact.merchantState = (null)
MerchantContact.merchantZip = (null)
MerchantContact.merchantPhone = (null)
MobileDeviceLoginResponse.userPermissions = (
)
(gdb)
// This source is from a forum posting -
// http://community.developer.authorize.net/t5/Integration-and-Testing/Problems-Registering-iOS-Device-for-Testing-in-Merchant-Account/m-p/22989#M12402
- (void) loginToGateway {
// First time we need to do a mobile device registration request.
// Remember that if this is the first time you've registered your
// device, the transaction will fail, however your device will now
// be in "pending" status in the test portal
// (https://test.authorize.net).
MobileDeviceRegistrationRequest *mobileDeviceRegistrationRequest =
[MobileDeviceRegistrationRequest mobileDeviceRegistrationRequest];
mobileDeviceRegistrationRequest.mobileDevice.mobileDeviceId =
[[[UIDevice currentDevice] uniqueIdentifier]
stringByReplacingOccurrencesOfString:@"-" withString:@"_"];
mobileDeviceRegistrationRequest.mobileDevice.mobileDescription = @"iPhoneX";
mobileDeviceRegistrationRequest.mobileDevice.phoneNumber = @"XXX-XXX-XXXX";
mobileDeviceRegistrationRequest.anetApiRequest.merchantAuthentication.name = @"username";
mobileDeviceRegistrationRequest.anetApiRequest.merchantAuthentication.password = @"password";
MobileDeviceLoginRequest *mobileDeviceLoginRequest =
[MobileDeviceLoginRequest mobileDeviceLoginRequest];
mobileDeviceLoginRequest.anetApiRequest.merchantAuthentication.name = @"username";
mobileDeviceLoginRequest.anetApiRequest.merchantAuthentication.password = @"password";
mobileDeviceLoginRequest.anetApiRequest.merchantAuthentication.mobileDeviceId =
[[[UIDevice currentDevice] uniqueIdentifier]
stringByReplacingOccurrencesOfString:@"-" withString:@"_"];
// Set up an AuthNet instance.
AuthNet *an = [AuthNet getInstance];
[an setDelegate:self];
// Process a mobile device registration request.
[an mobileDeviceRegistrationRequest:mobileDeviceRegistrationRequest];
// Process a mobile device login request.
[an mobileDeviceLoginRequest:mobileDeviceLoginRequest];
}
<mobileDeviceLoginResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
<messages>
<resultCode>Error</resultCode>
<message>
<code>E00054</code>
<text>The mobile device is not registered with this merchant account.</text>
</message>
</messages>
</mobileDeviceLoginResponse>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment