braintree / credit-card-type

A library for determining credit card type
MIT License
980 stars 154 forks source link

Master Cards starts with 2-series are shown as invalid #139

Closed Sanketh1220 closed 1 year ago

Sanketh1220 commented 2 years ago

General information

Issue description

I have used it for card validation in one my project when am using with master card which starts with 2-series even when I enter a valid card it shows invalid.

jplukarski commented 2 years ago

Thanks for bringing this up, @Sanketh1220. Support for Mastercard 2-series should have been added in version 6.1.1.

Here is the pattern that we use to validate Mastercards. If you can provide us with official documentation from Mastercard that we need to add some ranges to our pattern then we can get this fixed. Feel free to also open up a PR citing any official Mastercard documentation. We'll leave this issue open in the meantime.

hollabaq86 commented 1 year ago

Closing this since we haven't heard back from OP.