【问题标题】:Authorize.net Payment Gateway IntegrationAuthorize.net 支付网关集成
【发布时间】:2011-06-29 11:13:57
【问题描述】:

我正在尝试将 Authorize.net 支付 api 集成到我的应用程序中。网站 http://developer.authorize.net/downloads/samplecode 中没有 iphone 库。我正在搜索其他网站并测试这样的登录身份验证。

NSString *soapMessage=[NSString stringWithFormat:
                       @"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"
                       "<soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchemainstance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">\n"
                       "<soap:Body>\n"
                       "<FunctionName xmlns=\"https://apitest.authorize.net/soap/v1/\">\n"
                       "<merchantAuthentication>\n"
                       "<name>%@</name>\n"
                       "<transactionKey>%@</transactionKey>\n"
                       "</merchantAuthentication>\n"
                       "</FunctionName>\n"
                       "</soap:Body>\n"
                       "</soap:Envelope>\n"
                ,@"7uiT3456",@"6TyperT234"];
NSURL *url = [NSURL URLWithString:@"https://test.authorize.net/gateway/transact.dll"];

我总是得到输出

出现以下错误。

(13) 商户登录ID或密码无效或帐号未激活。

不知道这样是否正确?如果有任何其他更好的方法来集成 authorize.net api,请指导我。

【问题讨论】:

  • 您使用哪个网站获取有关如何实施 Authorize.net 的提示?我什至不确定我应该从哪里开始。
  • 您使用的是哪个环境?

标签: iphone objective-c payment-gateway authorize.net


【解决方案1】:

您有开发者帐户吗?如果您不这样做,并且您像以前一样使用测试服务器,那么您将收到此错误。注册developer account 并使用这些凭据进行测试。这应该可以解决您的问题。

2011 年 11 月 23 日更新

Authorize.net 现在提供iOS SDK

【讨论】:

  • 如果您使用开发人员帐户和测试服务器并收到此错误,则说明您的登录或交易不正确。这是获得此错误的唯一其他方法。
  • @John Conde 测试帐户是为开发者准备的。我将注册一个开发者帐户并登录到 test.authorize.net。它运行良好...
猜你喜欢
  • 2018-11-09
  • 2010-11-28
  • 2016-09-21
  • 2017-02-23
  • 1970-01-01
  • 1970-01-01
  • 2011-05-05
  • 2011-08-18
  • 2016-02-02
相关资源
最近更新 更多