JamesEggers1 / luhn

A JavaScript module of the luhn algorithm for Credit Card Validation that works with both client-side JavaScript and Node.js
MIT License
52 stars 17 forks source link

Validation for MasterCard BIN 2-Series (222100-272099) #13

Closed biranchi2018 closed 6 years ago

biranchi2018 commented 8 years ago

The luhn test is failing for the MasterCard BIN 2-Series (222100-272099). Please update the luhn code to accomodate BIN 2 series.

JamesEggers1 commented 8 years ago

I'll work on getting this updated. Have you seen any test numbers associated with the new 2-Series?

JamesEggers1 commented 8 years ago

Test card numbers 2221000010000015 and 2222222222222224 appear to be validating properly. If there is a different test card number, please provide so i can verify against it.

JamesEggers1 commented 6 years ago

Closing as 222-series cards appear to be validating properly and no additional test cards have been provided.