braintree / android-card-form

A ready-made card form layout that can be included in your Android app, making it easy to accept credit and debit cards.
MIT License
366 stars 128 forks source link

can we make only last four digit visible on getting card number #60

Closed mrgogomaster closed 5 years ago

quinnjn commented 5 years ago

Are you asking how to get the last 4 digits of the card entered in the Card Form?

That can be achieved like this:

String cardNumber = cardForm.getCardNumber();
String last4 = cardNumber.substring(cardNumber.length() - 4);

If I misunderstood the question, please comment with more detail.

mrgogomaster commented 5 years ago

yes thats what i was asking thanks