Added luhn check to isCreditCard. #90

Merged
merged 3 commits into from Jun 22, 2012

Projects

None yet

2 participants

@remyguercio
Contributor

Works will all numbers given here http://www.paypalobjects.com/en_US/vhelp/paypalmanager_help/credit_card_numbers.htm except the shorter Dankort processor card which does not actually pass the luhn check.

http://en.wikipedia.org/wiki/Luhn_algorithm

@remyguercio
Contributor

Forgot, did not minify new version since I didn't know exactly what you wanted to use.

@chriso
Owner
chriso commented Jun 22, 2012

This is great, thanks

@chriso chriso merged commit e251061 into chriso:master Jun 22, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment