找到你要的答案

Q:Braintree : How can i select a payment method and obtain a payment method nonce using a custom UI?

Q:Braintree:我如何选择付款方式和使用自定义UI获得付款方法杜撰?

I am trying to use braintree for payments in a web application. The flow i'm after is :

  • user registration : create a Braintree customer, associate its id with the user
  • first payment : show a custom UI for the credit card information, use the Braintree tutorial for adding a credit card and make the payment.
  • second payment : show a list of payment methods for the customer. When he/she selects one, make a payment using the selected payment method.

I am stumped at how i'm supposed to implement the second payment part. Assuming i keep payment methods info and show the client a list of payment methods, how do i obtain a payment method nonce i need to be able to execute a sale Transaction?

To clarify, i'm not using the Dropin UI because :

  • i need more information than it can show when entering a credit card (like cardholder)
  • i need to have a custom look-and-feel ui in different languages

I've read the Braintree guides and reference and i couldn't find and resource for a custom ui where i can reuse the payment method information.

Any input is highly appreciated.

我想使用布伦特里在Web应用程序中支付。我追求的是:

  • user registration : create a Braintree customer, associate its id with the user
  • first payment : show a custom UI for the credit card information, use the Braintree tutorial for adding a credit card and make the payment.
  • second payment : show a list of payment methods for the customer. When he/she selects one, make a payment using the selected payment method.

我不在我该如何实施第二支付部分。假设我把付款方式信息并显示客户端列表的付款方式,我如何获得付款方式目前我需要能够执行一个交易吗?

澄清一下,我不是因为使用滴UI:

  • i need more information than it can show when entering a credit card (like cardholder)
  • i need to have a custom look-and-feel ui in different languages

我看过Braintree的指南和参考,我找不到资源自定义UI哪里可以重用的支付方法的信息。

任何输入高度赞赏。

answer1: 回答1:

I work at Braintree. If you need more help, I suggest you email our support team.

When you store a credit card (by passing a nonce to credit card or payment method create) the response you get back contains a token. You can store this token permanently and use it in the future to make payments on the same card.

我在Braintree工作。如果您需要更多的帮助,我建议您发送电子邮件我们的支持团队。

当你商店的信用卡(通过临时信用卡或支付方法创建)你回来包含一个令牌的响应。您可以永久存储此令牌,并使用它在未来支付相同的卡。

braintree