Tested with all the test card numbers from http://www.paypalobjects.com/en_US/vhelp/paypalmanager_help/credit_card_numbers.htm
Worked with all. Good job!
anyone have the generate algorithm? I need to generate ID numbers with a check digit
@Maxhodges - To generate a check digit, set bEven to true initially, and return (1000 - nCheck) % 10.
(1000 - nCheck) % 10
Execution time is very high: 35128.324ms
I've tried another Algorithm and it reported 0.059ms https://gist.github.com/ShirtlessKirk/2134376
Quite helpful !!
Thanks!!! great work!