Piasys

Validating Credit Cards’ Numbers (not their coverage …)

In order to validate credit card numbers, you can leverage a kind of CRC (cyclic redundancy check) known with name LUHN from the name of its inventor. The algorithm is for example documented at the following URL: http://en.wikipedia.org/wiki/Luhn_algorithm. On the Internet, you will find tons of code samples for validating credit card numbers using this […]