1 # from http://perl.about.com/compute/perl/library/nosearch/P073000.htm
2 # verified by http://www.beachnet.com/~hstiles/cardtype.html
3 # Card Type Prefix Length
6 # American Express (AMEX) 34, 37 15
7 # Diners Club/Carte Blanche 300-305, 36, 38 14
8 # enRoute 2014, 2149 15
13 # from Neale Banks <neale@lowendale.com.au>
14 # According to a booklet I have from Westpac (an Aussie bank), a card number
15 # starting with 5610 or 56022[1-5] is a BankCard
16 # BankCards have exactly 16 digits.
18 # from "Becker, Max" <Max.Becker@firstgate.com>
19 # It's mostly used in the UK and is either called "Switch" or "Solo".
20 # Card Type Prefix Length
21 # Switch various 16,18,19
22 # Solo 63, 6767 16,18,19
34 # from http://en.wikipedia.org/wiki/Credit_card_number#Prefixes
35 # As of November 8, 2004, MasterCard and Diner's club formed an alliance.
36 # Cards issued in Canada and the USA start with 55 and are treated as
37 # MasterCards worldwide. International cards use the 36 prefix and are
38 # treated as mastercards in Canada and the US, but are treated as Diner's
39 # Club cards elsewhere. Diner's club international's website makes no
40 # reference to old 38 prefix numbers, and they can be presumed reissued under
41 # the 55 or 36 BIN prefix.
43 # Effective October 1, 2006, the Discover Network will activate new Issuer
44 # Identification Numbers (IINs) to support a variety of card types and
45 # products. Additionally, Discover and China Union Pay (CUP) have
46 # established a strategic alliance and reciprocity agreement. As a result,
47 # IIN ranges from CUP will be enabled to facilitate the acceptance of CUP
48 # credit Cards on the Discover Network by October 1, 2006. CUP credit
49 # cards will be enabled on Discover Network with a 16-digit Card Number
50 # only. The updated IIN table is shown below.
52 # Minimum IIN Maximum IIN Product
53 # 650000 650099 Consumer Debit
54 # 650100 650199 Commercial Debit
55 # 650200 650399 Stored Value
56 # 650400 650599 Stored Value
57 # 650600 650799 Consumer Credit
58 # 650800 650999 Commercial Credit
59 # 651000 659999 Reserved for Future Use
62 # 62212600 62292599 Credit
64 # Please ensure that your POS terminals, websites and any pertinent
65 # internal systems can accept these new IINs.
67 # from http://en.wikipedia.org/wiki/Laser_(debit_card)#Technical
68 # Laser cards are prefixed with either "6304", "6706", "6771" or "6709", and
69 # may be between 16 and 19 characters in length.