-
Notifications
You must be signed in to change notification settings - Fork 82
/
Copy pathcards.js
67 lines (67 loc) · 1.84 KB
/
cards.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
export default [
{
name: 'Banescard',
bins: /^(603182)[0-9]{10,12}/,
codeLength: 3,
},
{
name: 'Maxxvan',
bins: /^(603182)[0-9]{10,12}/,
codeLength: 3,
},
{
name: 'Cabal',
bins: /^(604324|604330|604337|604203|604338)[0-9]{10,12}/,
codeLength: 3,
},
{
name: 'GoodCard',
bins: /^(606387|605680|605674|603574)[0-9]{10,12}/,
codeLength: 3,
},
{
name: 'Elo',
bins: /^(401178|401179|431274|438935|451416|457393|457631|457632|504175|627780|636297|636368|(506699|5067[0-6]\d|50677[0-8])|(50900\d|5090[1-9]\d|509[1-9]\d{2})|65003[1-3]|(65003[5-9]|65004\d|65005[0-1])|(65040[5-9]|6504[1-3]\d)|(65048[5-9]|65049\d|6505[0-2]\d|65053[0-8])|(65054[1-9]|6505[5-8]\d|65059[0-8])|(65070\d|65071[0-8])|65072[0-7]|(6509[0-9])|(65165[2-9]|6516[6-7]\d)|(65500\d|65501\d)|(65502[1-9]|6550[3-4]\d|65505[0-8]))[0-9]{10,12}/,
codeLength: 3,
},
{
name: 'Diners',
bins: /^3(?:0[0-5]|[68][0-9])[0-9]{11}$/,
codeLength: 3,
},
{
name: 'Discover',
bins: /^6(?:011|5[0-9]{2}|4[4-9][0-9]{1}|(22(12[6-9]|1[3-9][0-9]|[2-8][0-9]{2}|9[01][0-9]|92[0-5]$)[0-9]{10}$))[0-9]{12}$/,
codeLength: 4,
},
{
name: 'Amex',
bins: /^3[47][0-9]{13}$/,
codeLength: 4,
},
{
name: 'Aura',
bins: /^50[0-9]{14,17}$/,
codeLength: 3,
},
{
name: 'Mastercard',
bins: /^(603136|603689|608619|606200|603326|605919|608783|607998|603690|604891|603600|603134|608718|603680|608710|604998)|(5[1-5][0-9]{14}|2221[0-9]{12}|222[2-9][0-9]{12}|22[3-9][0-9]{13}|2[3-6][0-9]{14}|27[01][0-9]{13}|2720[0-9]{12})$/,
codeLength: 3,
},
{
name: 'Visa',
bins: /^4[0-9]{12}(?:[0-9]{3})?$/,
codeLength: 3,
},
{
name: 'Hipercard',
bins: /^(38[0-9]{17}|60[0-9]{14})$/,
codeLength: 3,
},
{
name: 'JCB',
bins: /^(?:2131|1800|35\d{3})\d{11}$/,
codeLength: 3,
},
];