2

Braintree's transparent redirect works beautifully, I don't have to pass any credit card info through my servers, and I'd like to keep it this way. My question is what is the preferred method to allow returning customers to use vaulted credit card/billing information? Credit card token is a protected field, so it cannot be submitted by the customer via an option field. Instead, I need to specify credit card token before generating the transaction data field. The problem with this is twofold, 1. handling disabled javascript if I were to attempt some AJAX and 2. forcing a returning user through a separate page so they can choose their credit card/billing info is almost as much hassle as re-entering the info itself.

Bill
  • 21
  • 1

2 Answers2

3

You're right that using credit card tokens with transparent redirect is slightly difficult to deal with using the current Braintree API.

However if you already have the users credit card information stored in the vault, you can use a server to server request since you won't have to capture any sensitive information. A simple HTML select for the credit card token field would work, and your HTML form would post to your own sever.

To make this solution even more comprehensive, you can have the tr_data field included, if the user wants to enter a new card you can submit the form to Braintree as a TR request.

If you have any more questions or want to work through this code together email Braintree support: support@getbraintree.com

I'm a developer at Braintree and would be happy to help you with any more technical questions.

BenMills
  • 1,077
  • 1
  • 13
  • 15
0

I am a Python developer and just successfully integrated Django with Braintree.

I used almost the same approach as BenMills's description: using S2S API rather than TR for credit card switching while having the ability to create a new credit card on the same page!

But I think there might be a potential way to solve your problem: General several TR forms in one single page with corresponding tr_data for each credit card under that user, thus you don't have to worry about using AJAX to generate tr_data upon user's choices.

IPX
  • 241
  • 2
  • 5