Skip to content

Commit

Permalink
Merge pull request #1267 from angelleye/PFW-341
Browse files Browse the repository at this point in the history
PFW-341
  • Loading branch information
Drew Angell committed Jan 15, 2019
2 parents 4022b3c + bcd83a6 commit c461fdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions angelleye-includes/angelleye-utility.php
Original file line number Diff line number Diff line change
Expand Up @@ -951,8 +951,8 @@ public static function angelleye_paypal_credit_card_rest_setting_fields() {
public static function card_type_from_account_number($account_number) {
$types = array(
'visa' => '/^4[0-9]{0,15}$/i',
'mastercard' => '/^5[1-5][0-9]{5,}|222[1-9][0-9]{3,}|22[3-9][0-9]{4,}|2[3-6][0-9]{5,}|27[01][0-9]{4,}|2720[0-9]{3,}$/i',
'amex' => '/^3$|^3[47][0-9]{0,13}$/i',
'mastercard' => '/^(?:5[1-5][0-9]{2}|222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}$/i',
'amex' => '/^3[47][0-9]{13}$/i',
'discover' => '/^6$|^6[05]$|^601[1]?$|^65[0-9][0-9]?$|^6(?:011|5[0-9]{2})[0-9]{0,12}$/i',
'diners' => '/^3(?:0[0-5]|[68][0-9])[0-9]{4,}$/i',
'jcb' => '/^(?:2131|1800|35[0-9]{3})[0-9]{3,}$/i',
Expand Down

0 comments on commit c461fdb

Please sign in to comment.