From 2a6593fe63efefcb4bf69207b03e0b743cb504f4 Mon Sep 17 00:00:00 2001 From: Antony Roussos Date: Tue, 20 Feb 2018 12:28:27 +0200 Subject: [PATCH 1/2] Added Expansion to 2-series Bank Identification Numbers (BINs) for Mastercard --- config/credit_cards.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/credit_cards.php b/config/credit_cards.php index b32424a23..965260a38 100644 --- a/config/credit_cards.php +++ b/config/credit_cards.php @@ -47,7 +47,7 @@ 'mastercard' => array( 'length' => '16', - 'prefix' => '5[1-5]', + 'prefix' => '5[1-5]|2[2-7]', 'luhn' => TRUE, ), From c77de56d5fc7f351d20a401c3430449114659916 Mon Sep 17 00:00:00 2001 From: Antony Roussos Date: Tue, 20 Feb 2018 13:29:12 +0200 Subject: [PATCH 2/2] updated travis.yml to pass tests --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 3f9e63ab7..ad14bf631 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,6 +22,7 @@ php: matrix: include: - php: 5.3 + dist: precise env: 'COMPOSER_PHPUNIT="lowest"' before_script: