Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PFW-341 #1267

Merged
merged 1 commit into from Jan 15, 2019
Merged

PFW-341 #1267

Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

@@ -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',
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.