php-credit-card-validator icon indicating copy to clipboard operation
php-credit-card-validator copied to clipboard

Fixed BIN check for new mastercard range (2221-2720)

Open pascal-hofmann opened this issue 8 years ago • 2 comments

The check for MasterCard is incorrect. The new BIN range for MasterCard that is valid since October 2016 is 2221-2720 and not 22-27.

pascal-hofmann avatar Oct 09 '16 15:10 pascal-hofmann

Coverage Status

Coverage remained the same at 100.0% when pulling 9a1a26b5f44b76cb45e4b001647cc35ea4838e98 on pascal-hofmann:master into af3bab9af09dd159fbd23815ab08b1092d7fa963 on inacho:master.

coveralls avatar Oct 09 '16 15:10 coveralls

A bit different to: https://github.com/jessepollak/card/blob/635252d717528a7492b06b8f0b585b8b2434416d/dist/card.js#L1057

@inacho any chance this could be merged?

cosmok avatar Dec 18 '17 23:12 cosmok