zdfs / toscani

This is a jQuery-based, progressively-enhanced solution for creating a single-field credit card input. The idea is to create a more streamlined credit card entry process.
872 stars 102 forks source link

Enhancement: Validate card numbers #31

Closed jkshapiro closed 9 years ago

jkshapiro commented 10 years ago

The last digit in most major cards is a check digit (using the LUHN formula, see http://web.eecs.umich.edu/~bartlett/credit_card_number.html). It'd be great if this library included a validity check on the CC#.

Nilpo commented 9 years ago

I'd be willing to add this feature. I'll fork it.