Authorize.net ios Sdk 错误 [英] Authorize.net ios Sdk error
问题描述
我在使用测试帐户进行测试时遇到问题.
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];
[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];
但在响应时返回低于 xml.
but returning below xml on a responce.
<代码>错误E00003
命名空间AnetApi/xml/v1/schema/AnetApiSchema.xsd"中的元素merchantAuthentication"在命名空间AnetApi/xml/v1/schema/AnetApiSchema.xsd"中的子元素password"无效'.预期的可能元素列表:命名空间AnetApi/xml/v1/schema/AnetApiSchema.xsd"中的mobileDeviceId".
Error
E00003
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'.
谁能想到解决这个错误...?
can anyone had idea to solve this error...?
推荐答案
注册时无需传递transactionkey
.只需通过 loginid
和 password
No need to pass the transactionkey
when your are registering. just pass loginid
and password
这篇关于Authorize.net ios Sdk 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!