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.
Added luhn check to isCreditCard. Works will all numbers given here h…
…ttp://www.paypalobjects.com/en_US/vhelp/paypalmanager_help/credit_card_numbers.htm except the Dankort processor card which does not actually pass the luhn check.
Forgot, did not minify new version since I didn't know exactly what you wanted to use.
Mistake. Missed sanitize map not being in front of luhn check.
Triple equal at null check
This is great, thanks