I'm aware that the first 6 digits of card numbers represent the Issuer Identification Network (IIN) of the card and this information should in turn identify the country of origin.
Does Braintree offer any API to decode this information prior to processing a transaction? I'm not aware of any service at present that does so. I'd like to know where a card originates from before completing a transaction as this may have material implications for transaction fees, commissions etc. in my particular use case.
In a similar vein, I'd like to be able to differentiate debit vs. credit cards, though it seems this is not strictly possible simply by considering the IIN.
I work at Braintree. If you have more questions, you can always get in touch with our support team.
If you store a credit card with Braintree, the response will include BIN Database information:
- country_of_issuance - The country that issued the credit card.
debit - Whether the card is a debit card. Possible values:
Braintree::CreditCard::Debit::Yes Braintree::CreditCard::Debit::No Braintree::CreditCard::Debit::Unknown
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With