Skip to content

Commit 1ba7175

Browse files
committed
Add new MasterCard "2" series BIN range support
Fixes #87
1 parent 5501385 commit 1ba7175

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Omnipay/Common/CreditCard.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class CreditCard
119119
*/
120120
protected $supported_cards = array(
121121
self::BRAND_VISA => '/^4\d{12}(\d{3})?$/',
122-
self::BRAND_MASTERCARD => '/^(5[1-5]\d{4}|677189)\d{10}$/',
122+
self::BRAND_MASTERCARD => '/^(5[1-5]\d{4}|677189)\d{10}$|^(222[1-9]|2[3-6]\d{2}|27[0-1]\d|2720)\d{12}$/',
123123
self::BRAND_DISCOVER => '/^(6011|65\d{2}|64[4-9]\d)\d{12}|(62\d{14})$/',
124124
self::BRAND_AMEX => '/^3[47]\d{13}$/',
125125
self::BRAND_DINERS_CLUB => '/^3(0[0-5]|[68]\d)\d{11}$/',

0 commit comments

Comments
 (0)