Authorize.net ios Sdk错误

我正在用Test Accunt进行testing时遇到问题。

我用交易密钥input了正确的用户名和密码。

我已经使用下面的代码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]; 

但在响应下返回低于xml。

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'.

任何人都可以有想法来解决这个错误…?

注册时无需传递transactionkey密钥。 只要通过loginidpassword

它工作正常,但与Xcode 3.2.5运行,并与设备获得像AuthNet * an = [AuthNet getInstance]; 一个= null …所以我应该做的相同?

应用程序崩溃在[AuthNet authNetWithEnvironment:ENV_TEST]; 在Xcode 3.2.5中的设备。