BIN solution

The first 6 numbers of a credit or debit card. All payment card numbers conform to ISO 7812 and the BIN can be used to determine the card type, issuing bank, country issued and if the card is a commercial card or not.