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.