Reputation: 1596
Without Using Braintree Drop-In UI, I want use my custom UI to accept user's credit card details and validate user payments in android. Please Suggest me any tutorial or example which help me to create my custom UI.
Upvotes: 4
Views: 3914
Reputation: 534
Full disclosure: I work at Braintree. If you have any further questions, feel free to contact our support team.
A number of resources exist for implementing a custom UI for Android. The main difference between them is that you must tokenize payment methods manually. Use the CardBuilder class to tokenize your own payment methods.
CardBuilder cardBuilder = new CardBuilder()
.cardNumber("4111111111111111")
.expirationDate("09/2018");
Card.tokenize(mBraintreeFragment, cardBuilder);
Visit our docs to learn more about tokenizing credit cards and other payment methods using our Android SDK.
Additionally visit our Android SDK reference and our Braintree Android Demo for further examples on how to integrate our Android SDK.
Upvotes: 5