我用authorize.net創建了一個測試帳戶。錯誤Authorize.net
我已閱讀其文檔和自述文件,並遵循所有步驟。儘管如此,我還是遇到了一個錯誤:「移動設備未註冊到此商家帳戶。」
- (void)loginToGateway{
MobileDeviceLoginRequest *mobileDeviceLoginRequest =
[MobileDeviceLoginRequest mobileDeviceLoginRequest];
mobileDeviceLoginRequest.anetApiRequest.merchantAuthentication.name = @"xxxx";
mobileDeviceLoginRequest.anetApiRequest.merchantAuthentication.password = @"xxxx";
mobileDeviceLoginRequest.anetApiRequest.merchantAuthentication.mobileDeviceId =
[[[UIDevice currentDevice] uniqueIdentifier]
stringByReplacingOccurrencesOfString:@"-" withString:@"_"];
AuthNet *an = [AuthNet getInstance];
[an setDelegate:self];
[an mobileDeviceLoginRequest: mobileDeviceLoginRequest];
}
的NSLog:
MobileDeviceLoginResponse: MobileDeviceLoginResponse.anetApiResponse = ANetApiResponse.refId = (null)
ANetApiResponse.messages = Messages.resultCode = Error
Messages.message = (
"Message.code = E00054\nMessage.text = The mobile device is not registered with this merchant account.\nMessage.description = (null)\n"
)
我跑的代碼第一次檢查。
首頁>帳戶(設置)>安全設置(移動設備管理)
但沒有顯示設備..
有沒有辦法註冊設備?
,因爲我按照步驟4中的 https://developer.authorize.net/integration/fifteenminutes/ios提到的相同的指令..
請幫助。