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

Question: how to know if it's a debit card or credit card? #37

Closed yuanliu666 closed 6 years ago

yuanliu666 commented 6 years ago

General information

Issue description

Hi, nice library! However is there any way for me to know if input card is a debit card or credit card? Thanks!

quinnjn commented 6 years ago

Hi! Thanks!!

This library only determines identification from the Card Number. I don't think there is a way to tell between if the card is debit until you process the card transaction.

At transaction, Braintree can tell you BIN data such as if the card is debit.