【问题标题】:PayFort paymentAPI "Missing Parameter" for Apple Pay paymentApple Pay 支付的 PayFort paymentAPI“缺少参数”
【发布时间】:2019-07-29 08:16:36
【问题描述】:

我正在使用 PayFort 收到的 PayFort Apple Pay 指南文档将 PayFort Apple Pay 集成到我的应用程序中。

我将发送文档中提到的所有必需参数,并使用相同类型的值。

但我总是收到 PayFort 响应为“缺少参数”。

我无法获取缺少的特定参数或任何错误或我做错了什么。

这些是我在帖子中发送的参数:

这两个参数在列表中:“apple_header”和“apple_paymentMethod”

【问题讨论】:

  • 你读过那里的文档吗?
  • 你在发送 sdk_token 吗?
  • 我在 Apple Pay PayFort 文档指南中找不到任何名为 sdk_token 的参数
  • 我已经通过更改 ApplePay 的 payfort 回调方法解决了这个问题。ApplePay 有一个不同的回调方法,在他们的文档中没有提到。

标签: ios applepay payfort


【解决方案1】:

请检查以下是使用 PayFort 进行发布请求的强制性参数,我认为您的情况缺少 "sdk_token"

【讨论】:

  • 他们的苹果支付文档中没有 sdk_token 参数。
  • 你能把你的链接发给我吗?
  • 何不试一试?
  • 我试过了,但无法解决问题。我还向 payfort 发送了有关此问题的电子邮件。
  • 让 request = NSMutableDictionary.init() request.setValue("1000", forKey: "amount") request.setValue("AUTHORIZATION", forKey: "command") request.setValue("USD ", forKey: "currency") request.setValue("email@domain.com", forKey: "customer_email") request.setValue("en", forKey: "language") request.setValue("112233682686", forKey: "merchant_reference") request.setValue("gr66zzwW9" , forKey: "token_name") request.setValue("" , forKey: "payment_option")...... sdk_token 被替换了 token_name 你能查到吗?
【解决方案2】:

我已经通过更改 ApplePay 的 payfort 回调方法解决了这个问题。ApplePay 有一个不同的回调方法,在他们的文档中没有提到。

这是

- (void)callPayFortForApplePayWithRequest:(NSMutableDictionary *)RequestFort
           applePayPayment:(PKPayment *)payment
     currentViewController:(UIViewController *)controller
                   Success:(PAYFORTTransactionSuccess)success
                     Faild:(PAYFORTTransactionFaild)faild;

【讨论】:

  • 您好 Tahir,我正在尝试使用 Apple paySDK,并且已将提到的所有参数添加到文档中,但仍然出现缺少参数错误。你能指导我解决这个问题吗
  • 使用Apple Pay回调方法使用Apple Pay
猜你喜欢
  • 2017-09-14
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2022-07-26
  • 2019-03-21
  • 2020-08-18
  • 2015-10-29
  • 1970-01-01
相关资源
最近更新 更多