【发布时间】: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