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

Include MIR credit card #30

Open
arturhayne opened this issue Nov 2, 2021 · 0 comments
Open

Include MIR credit card #30

arturhayne opened this issue Nov 2, 2021 · 0 comments

Comments

@arturhayne
Copy link

arturhayne commented Nov 2, 2021

MIR credit card has been recognized as "mastercard", but it should has a different validation, something like below:

protected static $mirCardPattern = [
            'mir' => [
                'type'      => 'mir',
                'pattern'   => '/^220[0-4]/',
                'length'    => [16, 17, 18, 19],
                'cvcLength' => [3],
                'luhn'      => true,
            ],
        ];    

Mastercard should be updated to something like: '/^(5[0-5]|2[3-7]|22[1-9]|220[5-9])/' extracting MIR from its pattern.

MIR Range: 2200–2204
MIR Length: 16–19

https://en.wikipedia.org/wiki/Payment_card_number

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant