Closed reestolonio closed 6 years ago
I have a 2-series MasterCard test card, BIN starts with 2239. The exactPattern and prefixPattern don't include the above BIN.
exactPattern
prefixPattern
According to this MasterCard article, the range of 2-series is from 222100-272099. Then 2239 should be included.
https://github.com/braintree/credit-card-type/blob/9ff00528b709a861ed702694156739d7695a441b/index.js#L56
Thanks for the report. You're right that the pattern is a little off. We'll get this fixed soon.
Released in v6.1.1
I have a 2-series MasterCard test card, BIN starts with 2239. The
exactPattern
andprefixPattern
don't include the above BIN.According to this MasterCard article, the range of 2-series is from 222100-272099. Then 2239 should be included.
https://github.com/braintree/credit-card-type/blob/9ff00528b709a861ed702694156739d7695a441b/index.js#L56