Authorize.net 支付网关集成
我正在尝试将 Authorize.net 支付 api 集成到我的应用程序中。网站 http: 中没有适用于 iphone 的库//developer.authorize.net/downloads/samplecode。我正在搜索其他一些网站并像这样测试登录身份验证。
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) The merchant login ID or password is invalid or the account is inactive.我不知道这是正确的方法吗?如果有其他更好的方法来集成authorize.net api,请指导我。
I am trying to integrate Authorize.net payment api in my app.There is no libraries for iphone in the website http://developer.authorize.net/downloads/samplecode.I am searching some other website and test login authentication like this.
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"];
I get an output always
The following errors have occurred.
(13) The merchant login ID or password is invalid or the account is inactive.I don't know is this the correct way? if any other better way to integrate authorize.net api please guides me.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您有开发者帐户吗?如果不这样做,并且像现在这样使用测试服务器,那么您将收到此错误。注册开发者帐户并使用这些凭据进行测试。那应该可以解决你的问题。
更新 2011-11-23
Authorize.net 现在提供 iOS SDK
Do you have a developer account? If you don't, and you use the test server like you are, then you will get this error. Sign up for a developer account and use those credentials for testing. That should solve your problem.
Update 2011-11-23
Authorize.net now offers an iOS SDK