【问题标题】:How to Integrate payment using Authorize.Net for iOS如何使用 Authorize.Net for iOS 集成支付
【发布时间】:2014-12-02 06:13:16
【问题描述】:

我已将 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>;

【问题讨论】:

    标签: ios payment authorize.net


    【解决方案1】:

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

    您不妨查看http://developer.authorize.net/api/mobile 上提供的集成移动支付培训视频以了解概览。

    【讨论】:

      猜你喜欢
      • 2018-11-09
      • 2010-11-28
      • 1970-01-01
      • 2020-02-23
      • 2020-06-04
      • 2016-09-21
      • 2021-03-04
      • 2023-03-10
      • 2023-04-08
      相关资源
      最近更新 更多