1 <?php
defined('SYSPATH') OR die('No direct access allowed.');
3 * Credit card validation configuration.
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
14 'length' => '13,14,15,16,17,18,19',
18 'american express' => array
24 'diners club' => array
27 'prefix' => '36|55|30[0-5]',
33 'prefix' => '6(?:5|011)',
39 'prefix' => '3|1800|2131',
45 'prefix' => '50(?:20|38)|6(?:304|759)',