2011-11-29 5 views
2

Test Accunt로 테스트하는 동안 문제가 발생합니다. i가 올바른 사용자 명 및 거래 키 암호를 입력 한Authorize.net ios Sdk 오류

..

나 로그인 용 코드 아래 사용했다 ..

[AuthNet authNetWithEnvironment : ENV_TEST];

MobileDeviceLoginRequest *mobileDeviceLoginRequest =[MobileDeviceLoginRequest mobileDeviceLoginRequest]; 
mobileDeviceLoginRequest.anetApiRequest.merchantAuthentication.name = @"xxxx"; 
mobileDeviceLoginRequest.anetApiRequest.merchantAuthentication.transactionKey [email protected]"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 미만으로 반환됩니다.

ErrorE00003 네임 스페이스 요소 'merchantAuthentication' 'AnetApi/XML/V1/스키마/AnetApiSchema.xsd'잘못된 자식 요소 네임 스페이스에 '암호' 'AnetApi/XML/V1/스키마/AnetApiSchema.xsd'를 가지고있다. 예상 가능한 요소 목록 : 'mobileDeviceId'네임 스페이스 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'

사람이 오류를 해결하기 위해 생각을했다 할 수 ...?

답변

2

등록 할 때 transactionkey을 전달할 필요가 없습니다. 그냥 loginidpassword

+3

테스트와 함께 사용되지만 abt 실시간 테스트는 무엇입니까? – darshan

+3

실시간 테스트를 위해서는 라이브 계정이 필요합니다. – Dhara

+0

사과가 Authorize.net을 사용하여 결제 거래를 허용합니까? 거부하지 않습니까? – FirstTimer

0

괜찮습니다. xcode 3.2.5를 실행하면 AuthNet * an = [AuthNet getInstance]와 같은 오류가 발생합니다. an = null ... 그래서 같은 일을해야합니까 ??

[AuthNet authNetWithEnvironment : ENV_TEST]에서 응용 프로그램이 충돌합니다. xcode 3.2.5 in device.