gpt4 book ai didi

ios - 如何使用 Authorize.Net for iOS 集成支付

转载 作者:行者123 更新时间:2023-11-29 12:36:17 25 4
gpt4 key购买 nike

我已将 authorize.net 集成到我的 iOS 应用程序中。我在本教程中执行了步骤 https://developer.authorize.net/integration/fifteenminutes/ios/

- (void) loginToGateway {
MobileDeviceLoginRequest *mobileDeviceLoginRequest =
[MobileDeviceLoginRequest mobileDeviceLoginRequest];
mobileDeviceLoginRequest.anetApiRequest.merchantAuthentication.name = <USERNAME>;
mobileDeviceLoginRequest.anetApiRequest.merchantAuthentication.password = <PASSWORD>;
mobileDeviceLoginRequest.anetApiRequest.merchantAuthentication.mobileDeviceId =
[[[UIDevice currentDevice] uniqueIdentifier]
stringByReplacingOccurrencesOfString:@"-" withString:@"_"];

AuthNet *an = [AuthNet getInstance];
[an setDelegate:self];
[an mobileDeviceLoginRequest: mobileDeviceLoginRequest];
}

但请求响应:

- (void) requestFailed:(AuthNetResponse *)response{
NSLog(@"ViewController : requestFailed - %@",response);
[_activityIndicator stopAnimating];

UIAlertView *infoAlertView = [[UIAlertView alloc] initWithTitle:@"Login Error" message:INFORMATION_MESSAGE delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil];
[infoAlertView show];

}

这里要填什么?

mobileDeviceLoginRequest.anetApiRequest.merchantAuthentication.name = <USERNAME>;
mobileDeviceLoginRequest.anetApiRequest.merchantAuthentication.password = <PASSWORD>;

最佳答案

名称和密码是在商家界面中创建的用户的登录 ID 和密码。如果您指定了测试环境并连接到沙箱,这将是您用于登录 https://sandbox.authorize.net 的用户名和密码。

您可能希望查看 http://developer.authorize.net/api/mobile 上提供的集成移动支付培训视频。概览。

关于ios - 如何使用 Authorize.Net for iOS 集成支付,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26242429/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com