PawelDecowski / jquery-creditcardvalidator

jQuery credit card validation and detection plugin
jquerycreditcardvalidator.com
MIT License
1.05k stars 275 forks source link

2 series Mastercard does not validate #124

Closed benjaminjames closed 5 years ago

benjaminjames commented 5 years ago

This year Mastercard is issuing new debit cards prefixed with "2" instead of the traditional "5". Currently these are failing to be recognized. Example card number: 2226470000082007 EXP: 10/21 CVC: 153

jasongrimes commented 5 years ago

From https://www.mastercard.us/en-us/issuers/get-support/2-series-bin-expansion.html

Mastercard® has received an additional range of 2-series numbers (range 222100-272099) to add to the 5-series (range 510000-559999) that we currently provide.

PawelDecowski commented 5 years ago

This has been supported since version 1.1 (November 2016):

https://github.com/PawelDecowski/jquery-creditcardvalidator/blob/v1.1.0/jquery.creditCardValidator.coffee#L66

benjaminjames commented 5 years ago

@PawelDecowski Thanks, but is there a reason 2-series cards are not recognized on https://jquerycreditcardvalidator.com/ ?

PawelDecowski commented 5 years ago

Yes. The homepage uses an old version of the plugin. I’ll update it soon.