- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我目前正在使用一家名为 eWAY 的公司的信用卡 SDK 编写一个 iOS 应用程序。
我试图让它在沙盒测试环境中工作,但我一直收到空错误。
NSLog 输出(“EWAY ERROR”是我的 NSLog 消息的一部分)
2015-10-15 12:25:40.127 EwayTest[1351:37919] EWAY ERROR: <null> ()
我实际上是在使用网页上的示例:https://www.eway.com.au/developers/sdk/ios
网关:我正在使用指定的 URL:https://api.sandbox.ewaypayments.com/ 网关。
我的代码:
- (IBAction)btnPress:(id)sender
{
Transaction *transaction = [[Transaction alloc] init];
Customer *customerObj = [[Customer alloc] init];
customerObj.Reference = @"A12345";
customerObj.Title = @"Mr.";
customerObj.FirstName = @"Nico";
customerObj.LastName = @"Vulture";
customerObj.CompanyName = @"All Web Pty Ltd";
customerObj.JobDescription = @"Developer";
customerObj.Phone = @"09 889 0986";
customerObj.Mobile = @"09 889 0986";
Address *customerAddress = [[Address alloc] init];
customerAddress.Street1 = @"Level 5";
customerAddress.Street2 = @"369 Queen Street";
customerAddress.City = @"Sydney";
customerAddress.State = @"NSW";
customerAddress.PostalCode = @"2010";
customerAddress.Country = @"au";
customerObj.Address = customerAddress;
CardDetails *cardDetails = [[CardDetails alloc] init];
cardDetails.Name = @"Nico Vulture";
cardDetails.Number = @"378282246310005";
cardDetails.ExpiryMonth = @"10";
cardDetails.ExpiryYear = @"19";
cardDetails.CVN = @"836";
customerObj.CardDetails = cardDetails;
transaction.Customer = customerObj;
//payment
Payment *payment = [[Payment alloc] init];
payment.Payment = 100;
payment.InvoiceNumber = @"Inv 21540";
payment.InvoiceDescription = @"Individual Invoice Description";
payment.InvoiceReference = @"513456";
payment.CurrencyCode = @"AUD";
transaction.Payment = payment;
//Make payment
[RapidAPI submitPayment:transaction completed:^(SubmitPaymentResponse *submitPaymentResponse) {
if(submitPaymentResponse.Status == Accepted)
{
NSLog(@"EWAY: Accepted");
}
else if (submitPaymentResponse.Status == Success)
{
// The API Call completed successfully.
NSLog(@"EWAY: Success");
}
else if(submitPaymentResponse.Status == Error)
{
// An error occurred with the API Call.
[RapidAPI userMessage:submitPaymentResponse.Errors Language:@"EN" completed:^(UserMessageResponse *userMessageResponse) {
NSString *msg = [NSString stringWithFormat:@"%@ \n %@",userMessageResponse.Errors, userMessageResponse.Messages];
NSLog(@"EWAY ERROR: %@",msg);
}];
}
}];
}
但是我注意到,当我更改网关 (URL) https://api.ewaypayments.com/DirectPayment.json 时,我收到以下错误输出:
EWAY ERROR: S9990
(null)
网站上显示“库没有初始化端点,或者没有初始化为 URL”错误。
我一直在联系公司,肯定是我这里做错了。有没有人对此有任何经验并且可以提供一些关于我所缺少的东西的见解?
最佳答案
只是为了更新任何正在或曾经遇到此问题的人。代码运行完美,SDK 中存在一个错误,此错误已得到修复。
关于ios - eWAY iOS SDK 出现空错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33138770/
我为此使用 eWay 支付网关,我使用 URL 来发布数据 https://secure-au.sandbox.ewaypayments.com/Process 但得到这样的回应:{"Message"
我目前正在使用一家名为 eWAY 的公司的信用卡 SDK 编写一个 iOS 应用程序。 我试图让它在沙盒测试环境中工作,但我一直收到空错误。 NSLog 输出(“EWAY ERROR”是我的 NSLo
我在表单中创建了 eway paynow 按钮。 Name: 在加载电子支付之前,我需要检查 customer_name 字段是否为空形式。如果 customer_name
我想使用 eWay ( http://eway.com.au ) 作为支付网关,但问题是它不允许在其托管页面上进行太多自定义。我想显示客户会付费的产品,但这是不可能的,所以我想也许只是将托管页面敲入
我在使用 eWay 网络服务时遇到问题。 我通过 wsimport 使用 https://www.eway.com.au/gateway/rebill/test/manageRebill_test.a
我要集成 eway token 支付集成,但我正面临这个问题。 SoapFault exception: [HTTP] Bad Request wsdl文件在这里 https://www.eway.c
我有这个代码: 如何通过 Javascript 函数设置数据量? 最佳答案 你可以试试看 (假设您只对脚本元素设置了 eway-paynow-button 类) document.getEleme
如何使用 js/jquery 动态更改以下脚本的数据量? 最佳答案 $('script.eway-paynow-button').attr('data-amount',
我是一名优秀的程序员,十分优秀!