Removed dep on API
[ninja.git] / system / config / credit_cards.php
blobbfc98420b3378ba202c1a2810960b3c9a66d2fbe
1 <?php defined('SYSPATH') OR die('No direct access allowed.');
2 /**
3 * Credit card validation configuration.
4 *
5 * Options for each credit card:
6 * length - All the allowed card number lengths, in a comma separated string
7 * prefix - The digits the card needs to start with, in regex format
8 * luhn - Enable or disable card number validation by the Luhn algorithm
9 */
10 $config = array
12 'default' => array
14 'length' => '13,14,15,16,17,18,19',
15 'prefix' => '',
16 'luhn' => TRUE
18 'american express' => array
20 'length' => '15',
21 'prefix' => '3[47]',
22 'luhn' => TRUE
24 'diners club' => array
26 'length' => '14,16',
27 'prefix' => '36|55|30[0-5]',
28 'luhn' => TRUE
30 'discover' => array
32 'length' => '16',
33 'prefix' => '6(?:5|011)',
34 'luhn' => TRUE,
36 'jcb' => array
38 'length' => '15,16',
39 'prefix' => '3|1800|2131',
40 'luhn' => TRUE
42 'maestro' => array
44 'length' => '16,18',
45 'prefix' => '50(?:20|38)|6(?:304|759)',
46 'luhn' => TRUE
48 'mastercard' => array
50 'length' => '16',
51 'prefix' => '5[1-5]',
52 'luhn' => TRUE
54 'visa' => array
56 'length' => '13,16',
57 'prefix' => '4',
58 'luhn' => TRUE