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.