Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How often do the first four numbers of a credit card change?

Right now I detect the credit card type based upon the first four numbers of it.

How often do these first four digits change? Is there a service which can interface with ASP.NET that will keep an up to date list of these first four digits and their corresponding institutions?

like image 353
SteveGSD Avatar asked Jan 16 '12 22:01

SteveGSD


3 Answers

According to the Wikipedia article on this, the last significant change to this list was in 2007. Keeping your software up to date shouldn't be too challenging, even if you do hard code this.

like image 111
Brian Willis Avatar answered Oct 21 '22 22:10

Brian Willis


Sorry to disagree with the other answerers, but the first six digits (not four) of a card number are known as the issuer identifier range. New ranges are FREQUENTLY added or removed to this list. You would typically need to be on a mailing list from the card issuers to even attempt to keep up to date

This document from Barclays (UK) for example shows a number of revisions in the last few months, such as the addition of a 6440-6599 range for Diners card. http://www.barclaycard.co.uk/business/documents/pdfs/bin_rules.pdf

Basically, attempting to identify card from the IIN is tricky at best. It's not clear why you want to identify a card from the IIN, but it typically isnt necessary if you are performing authorization through a payment gateway

like image 23
PaulG Avatar answered Oct 22 '22 00:10

PaulG


At risk of answering your question without answering it, have you seen this? How do you detect Credit card type based on number?

like image 2
Chris Shain Avatar answered Oct 21 '22 23:10

Chris Shain