-
Notifications
You must be signed in to change notification settings - Fork 196
Expand file tree
/
Copy pathconfig.php
More file actions
40 lines (33 loc) · 1.22 KB
/
Copy pathconfig.php
File metadata and controls
40 lines (33 loc) · 1.22 KB
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
<?php
/**
* Configuration file for CC Checker
* Enhanced with robust bank algorithm validation settings
*
* @author OshekharO
*/
// ============================================
// Card Validation Settings
// ============================================
// Enable Luhn algorithm validation (ISO/IEC 7812-1)
define('ENABLE_LUHN_CHECK', true);
// Card number length constraints
define('MIN_CARD_LENGTH', 13); // Minimum: 13 digits (some older Visa cards)
define('MAX_CARD_LENGTH', 19); // Maximum: 19 digits (some UnionPay cards)
// ============================================
// Expiry Validation
// ============================================
// Cards must be valid from this year onwards (Dynamic to prevent silent expiry bugs)
define('MIN_VALID_YEAR', (int) date('Y'));
// ============================================
// Supported Card Types (IIN/BIN Ranges)
// ============================================
// The following card types are automatically detected:
// - Visa (4xxx)
// - Mastercard (51xx-55xx, 222100-272099)
// - American Express (34xx, 37xx)
// - Discover (6011, 644-649, 65)
// - Diners Club (300-305, 36, 38)
// - JCB (2131, 1800, 35)
// - UnionPay (62)
// - Maestro (5018, 5020, 5038, 5893, 6304, 6759, 6761-6763)
?>