cancel
Showing results for 
Search instead for 
Did you mean: 

problem with the testing with the Test accunt in the Iphone sdk

Hello

 

i am facing problem while testing with the Test Accunt.

 

i had entered correct user name and password with transection key..

 

i had used below code for login..

 

[AuthNet authNetWithEnvironment:ENV_TEST];
    
    MobileDeviceLoginRequest *mobileDeviceLoginRequest =[MobileDeviceLoginRequest mobileDeviceLoginRequest];
    mobileDeviceLoginRequest.anetApiRequest.merchantAuthentication.name = @"xxxx";
    mobileDeviceLoginRequest.anetApiRequest.merchantAuthentication.transactionKey =@"xxxxxxxxxxxxxx";
    mobileDeviceLoginRequest.anetApiRequest.merchantAuthentication.sessionToken =sessionToken;
    mobileDeviceLoginRequest.anetApiRequest.merchantAuthentication.password = @"xxxxxxx";
    mobileDeviceLoginRequest.anetApiRequest.merchantAuthentication.mobileDeviceId =[[[UIDevice currentDevice] uniqueIdentifier]
     stringByReplacingOccurrencesOfString:@"-" withString:@"_"];
 
    AuthNet *an = [AuthNet getInstance]; 
    [an setDelegate:self];
    [an mobileDeviceLoginRequest: mobileDeviceLoginRequest];

 

but returning below xml on a responce.

 

<?xml version="1.0" encoding="utf-8"?><ErrorResponse 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>E00003</code><text>The element 'merchantAuthentication' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element 'password' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'. List of possible elements expected: 'mobileDeviceId' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'.</text></message></messages></ErrorResponse>

 

can anyone had idea to solve this error...?

 

Thanks

12 REPLIES 12

I am facing the error stating  "The mobile device is not registered with this merchant account". how to solve this error ?????? I searched in the website but no answer could be helpful. I have read the readme.txt and also the documentation on website, I have gone through all the steps mentioned yet I am facing the same error. Kindly Help me.


I have made a test developer account. Would I need to create a marchant account ??????

You did steps 3 and 4 here?

https://developer.authorize.net/integration/fifteenminutes/ios

 

It specifically mentions how to set this up for sandbox.

not working this way as well :(