ContaAzul / creditcard.js

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

Incorrect: isValid(1231233212) return true #85

Closed adrianoresende closed 6 years ago

adrianoresende commented 6 years ago

Why this numberisValid('1231233212') is returning true ?

randalmaia commented 6 years ago

Hello @adrianoresende thank you for your issue.

creditcard.js is using Luhn Algorithm to validate the creditcard numbers.

This card number 1231233212 is valid and belongs to UATP You can check the card numbers patterns,ranges and owners here