Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Identify credit/debit card country of origin with Braintree?

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.

like image 486
John Rix Avatar asked Mar 16 '23 14:03

John Rix


1 Answers

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
    
like image 187
agf Avatar answered May 11 '23 00:05

agf