ContaAzul / creditcard.js

A simple credit card validation library in JavaScript
http://contaazul.github.io/creditcard.js/
Other
374 stars 82 forks source link

fix: card number length validation #133

Closed guibrancopc closed 3 years ago

guibrancopc commented 3 years ago

What is the change?

Why make this change?

resolves https://github.com/ContaAzul/creditcard.js/issues/131

The credit card number length has a maximum value of 19, which is enough to fix this bug.

Sources

https://en.wikipedia.org/wiki/Payment_card_number#Issuer_identification_number_(IIN)

https://www.discoverglobalnetwork.com/downloads/IPP_VAR_Compliance.pdf

Test plan