[英]JavaScript: how to use Braintree paymentMethod nonce bu
I am using Braintree v3 for a client implementation. 我正在使用Braintree v3进行客户端实施。 I am using the dropin UI.
我正在使用dropin UI。 I am trying to create a new vaulted card.
我正在尝试创建新的拱形卡。 I have an api from the backend team I'm working with to update payment method.
我有一个与我合作的后端团队提供的api,用于更新付款方式。 It takes a user token in the Header and if successful, the response is a payment method nonce.
它在标头中获取用户令牌,如果成功,则响应为付款方式随机数。
I'm just not sure what to do with this paymentMethod nonce or where to actually call the api. 我只是不确定该怎么办这个PaymentMethod随机数或在哪里实际调用api。
Disclaimer: I work for Braintree. 免责声明:我为Braintree工作。 If you need a more detailed answer, please don't hesitate to reach out to Braintree Support
如果您需要更详细的答案,请随时与 Braintree支持小组联系。
The flow should be as follows: 流程应如下:
payment_method_nonce
and sends it to your server payment_method_nonce
并将其发送到您的服务器 The Drop-in will display a customer's saved payment methods and automatically add any newly-entered payment methods to their Vault record if you pass a customer_id when generating a client token. 如果在生成客户令牌时传递了customer_id,则 Drop-in将显示客户已保存的付款方式,并自动将所有新输入的付款方式添加到其保险柜记录中。
Here is the documentation on how to vault an updated payment method. 这是有关如何存储更新的付款方式的文档。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.