我在 Braintree::Transaction.sale 上收到来自 Braintree 的错误
Braintree::ErrorResult params:{...} errors:transaction:[(91564)
Cannot use a payment_method_nonce more than once.
但是,当我检查 nonce token 时,它总是与上次请求不同。
从 IOS 应用程序收到的随机数示例:
10e368f1-81bc-4ace-b4b4-76cfdc4d1459
02cc81b2-d6c7-416b-b5d5-5b23c7e81fad
最佳答案
问题已解决。我正在尝试使用随机数通过 paymentMethod.create 手动添加卡...与我用于 Transaction.Sale 的随机数相同,而不是使用 PaymentMethod.create 返回的 token 。
关于ruby-on-rails - Braintree IOS + rails 错误 91564 不能多次使用 payment_method_nonce,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30450345/