1 <?php
defined('SYSPATH') OR die('No direct script access.');
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
13 'length' => '13,14,15,16,17,18,19',
18 'american express' => array(
24 'diners club' => array(
26 'prefix' => '36|55|30[0-5]',
32 'prefix' => '6(?:5|011)',
38 'prefix' => '3|1800|2131',
44 'prefix' => '50(?:20|38)|6(?:304|759)',
48 'mastercard' => array(