i am facing issues while testing with the Test Accunt.
i had entered correct user name and password with transaction 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.
ErrorE00003The 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’.
can anyone had idea to solve this error…?
No need to pass the
transactionkeywhen your are registering. just passloginidandpassword