I am using Braintree SDK
in my android app for payments
and its working fine, But here is one problem it asks every time credit/debit card details. So my question is, is there any way to store credit/debit card detail for next time payments without asking again credit card detail for the same user.

- 1,988
- 2
- 12
- 26
-
1You can't store credit card details. Neither in app nor in backend due to legal stuff. You have to use payment nonce, which is reusable. – Marius Kaunietis Dec 22 '16 at 09:49
-
Hi, Marius Kaunietis so any other way to achieve this functionality..? – Dileep Patel Dec 22 '16 at 09:51
-
In app we did, we acquired payment nonce and sent it to backend. Whatever happens in backend, I do not know, but we surely did not have to enter details twice. – Marius Kaunietis Dec 22 '16 at 09:52
-
1you have talk about this *String strGetNonce = paymentMethodNonce.getNonce();* – Dileep Patel Dec 22 '16 at 09:55
-
1Sorry, but I can't tell you anything more. It's done in backend and I did the app. From app's point of view, I just send the nonce to backend when adding a card, and backend handles all the rest. – Marius Kaunietis Dec 22 '16 at 09:59
-
Ok Mr. Marius Kaunietis thanks for helping .. – Dileep Patel Dec 22 '16 at 10:01
-
I also try but facing same problem .how to manage with backend? @Dileep – Sachin Suthar Dec 22 '16 at 10:19
1 Answers
Full disclosure: I work at Braintree. If you have any further questions, feel free to contact support.
You can store credit cards and other payment methods in the Braintree Payment Method Vault associated with your Braintree account. Payment methods are associated directly to customer records, and customers may have more than one payment method associated with them.
To present a customer with their payment methods during checkout, you have two options. If you're using a custom integration, you can check the customer object for associated payment methods then look up the details for each payment method in turn. If you're using the Drop-in, you have a simpler option.
The Drop-in form automatically fetches a customer's payment methods when it is presented with a customer ID. To present it with a customer ID, first generate a client token using a customer ID, then use that client token to initialize the Drop-in.
ClientTokenRequest clientTokenRequest = new ClientTokenRequest()
.customerId(aCustomerId);
String clientToken = gateway.clientToken().generate(clientTokenRequest);

- 686
- 3
- 4