validate_card() is a new synonym for validate(), starting a long-term plan to stop...
[Business-CreditCard.git] / BINS
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
4 MasterCard                        51-55                            16
5 VISA                              4                                13, 16
6 American Express (AMEX)           34, 37                           15
7 Diners Club/Carte Blanche         300-305, 36, 38                  14
8 enRoute                           2014, 2149                       15
9 Discover                          6011                             16
10 JCB                               3                                16
11 JCB                               2131, 1800                       15
12
13 --
14
15 from Neale Banks <neale@lowendale.com.au>
16 According to a booklet I have from Westpac (an Aussie bank), a card number
17 starting with 5610 or 56022[1-5] is a BankCard
18 BankCards have exactly 16 digits.
19
20 --
21
22 from "Becker, Max" <Max.Becker@firstgate.com>
23 It's mostly used in the UK and is either called "Switch" or "Solo".
24 Card Type                         Prefix                           Length
25 Switch                            various                          16,18,19
26 Solo                              63, 6767                         16,18,19
27
28 switch
29 4903
30    0[2-9]
31    3[5-9]
32 4911 
33    0[1-2]
34    7[4-9]
35    8[1-2]
36 4936
37
38 --
39
40 from http://en.wikipedia.org/wiki/Credit_card_number#Prefixes
41 As of November 8, 2004, MasterCard and Diner's club formed an alliance.
42 Cards issued in Canada and the USA start with 55 and are treated as
43 MasterCards worldwide. International cards use the 36 prefix and are
44 treated as mastercards in Canada and the US, but are treated as Diner's
45 Club cards elsewhere. Diner's club international's website makes no
46 reference to old 38 prefix numbers, and they can be presumed reissued under
47 the 55 or 36 BIN prefix.
48
49 Effective October 1, 2006, the Discover Network will activate new Issuer
50 Identification Numbers (IINs) to support a variety of card types and
51 products. Additionally, Discover and China Union Pay (CUP) have
52 established a strategic alliance and reciprocity agreement. As a result,
53 IIN ranges from CUP will be enabled to facilitate the acceptance of CUP
54 credit Cards on the Discover Network by October 1, 2006. CUP credit
55 cards will be enabled on Discover Network with a 16-digit Card Number
56 only. The updated IIN table is shown below.
57
58 Minimum IIN             Maximum IIN             Product
59 650000          650099          Consumer Debit
60 650100          650199          Commercial Debit
61 650200          650399          Stored Value
62 650400          650599          Stored Value
63 650600          650799          Consumer Credit
64 650800          650999          Commercial Credit
65 651000          659999          Reserved for Future Use
66
67         China Union Pay
68 62212600                62292599                Credit
69
70 Please ensure that your POS terminals, websites and any pertinent
71 internal systems can accept these new IINs.
72
73 --
74
75 from http://en.wikipedia.org/wiki/Laser_(debit_card)#Technical
76 Laser cards are prefixed with either "6304", "6706", "6771" or "6709", and
77 may be between 16 and 19 characters in length.
78
79 --
80
81 from https://www.discovernetworkvar.com/pdf_docs/9-2_VAR_ALERT_Sep_2009.pdf
82 Be sure to update your POS systems now with the following expanded Issuer
83 Identification Number ("IIN") Ranges.  The IIN Range table listed below
84 includes Diners Club International ("DCI") and other Issuers and Card
85 programs that operate on Discover Network. These ranges are required for Card
86 transaction routing and detailed in Release 9.2 of the Discover® Network
87 Acquirer Operating Regulations and Technical Specifications:
88
89                      Start              End                 Issuing
90                                                             Network
91                      30000000           30599999            DCI
92                      30950000           30959999            DCI
93                      35280000           358999991           JCB
94                      36000000           369999992           DCI
95                      38000000           39999999            DCI
96                      60110000           60110999            Discover
97                                                             Network
98                      60112000           60114999            Discover
99                                                             Network
100                      60117400           60117499            Discover
101                                                             Network
102                      60117700           60117999            Discover
103                                                             Network
104                      60118600           60119999            Discover
105                                                             Network
106                      62212600           62292599            CUP
107                      62400000           62699999            CUP
108                      62820000           62889999            CUP
109                      64400000           65999999            Discover
110                                                             Network
111
112 1 This IIN range (35280000 to 35899999) shall be enabled only by Merchant
113 Processors in connection with Merchant relationships, POS Devices or otherw
114 of the United States of America and the District of Columbia, Puerto Rico, th
115 Northern Mariana Islands and Guam, subject to certain exceptions in Acquir
116 applicable.
117 2 The PAN length for this IIN Range (36000000 to 36999999) is 14 digits.
118
119 --
120
121 from SBH Israel / Nir Alfandari:
122 Local Isracard: 8(-9?) digits
123
124 From http://www.wysiwyg.co.il/Anatomy-of-CreditCard-Number-formats.asp#IsraCard-algorithm
125 8-9 digits, non-LUHN validation
126
127 From Erik Levinse:
128  i think it's like luhn, except instead of 212121... you put
129 +987654321 under the number you're validating, multiply each, and do mod 11 on
130 +the sum, instead of mod 10.
131
132
133 --------------------
134
135 From Jason Terry:
136
137  list of the IIN values that were given to us by Discover.  We manually tested a number from each end of the range to make sure B:CC worked.
138  
139  30000000-30599999 DCI
140  30950000-30959999 DCI
141  35280000-35899999 JCB * us only
142  36000000-36999999 DCI * 14 digits
143  38000000-39999999 DCI
144  60110000-60110999 DN
145  60112000-60114999 DN
146  60117400-60117499 DN
147  60117700-60117999 DN
148  60118600-60119999 DN
149  62212600-62292599 CUP
150  62400000-62699999 CUP
151  62820000-62889999 CUP
152  64400000-65999999 DN
153
154 ---
155
156 DCI = diner's, now discover everywhere
157 JCB = treat JCB as discover inside the US
158 DN = Discover Network
159 CUP = China Union Pay, treat as Discover outside China