【问题标题】:Braintree result doesnt contain paymentMethod memberBraintree 结果不包含付款方式成员
【发布时间】:2018-05-31 15:30:46
【问题描述】:

我已经在 iOS 中集成了 Braintree,paypal 和信用卡的工作就像一个魅力。我尝试实施 Apple Pay(添加了商家 ID,创建了 Apple Pay 证书等)并且可以看到 Apple Pay 选项。

选择 Apple pay 时,我作为响应返回的 Braintree 结果不包含 paymentMethod 成员,随后我无法获得 nonce,因为 nonce 又是其中的成员。

还有其他人也被困在这里吗?找不到有关此的任何文档。该设备似乎可以进行支付。

PKPaymentAuthorizationViewController.canMakePayments(usingNetworks: [PKPaymentNetwork.visa, PKPaymentNetwork.masterCard, PKPaymentNetwork.amex]); //returns true

P.S:使用 BTDropInController 虽然它不应该有任何区别。
P.S.2:这发生在模拟器和设备上

【问题讨论】:

  • 显示一些代码可能你在创建付款请求时遗漏了一些东西。
  • 我可能还没有使用 BTDropInController 发出请求,它应该为我这样做。我并没有真正在其他付款方式中自己提出请求,或者我只是使用 BTDropInController

标签: ios braintree applepay braintree-sandbox


【解决方案1】:

全面披露:我在 Braintree 工作。如果您还有任何问题,请随时联系support

根据开发者文档,这是expected behavior。在 Drop-in UI 中选择 Apple Pay 作为付款方式不会显示 Apple Pay 表或创建随机数 - 您仍需要在应用程序中的适当时间执行此操作。使用 BTApplePayClient 标记客户的 Apple Pay 信息。如需更多信息,请查看 Braintree 的Apple Pay Guide

【讨论】:

  • 非常感谢,看来我对 Drop-in UI 的发展程度有误。 +1
猜你喜欢
  • 2015-09-16
  • 2017-08-17
  • 2018-05-12
  • 2015-03-11
  • 2015-11-22
  • 2015-05-30
  • 1970-01-01
  • 1970-01-01
  • 2017-11-18
相关资源
最近更新 更多