Credit Cards and Luhn’s algorithm

Credit Card numbers – for most of the major players in the field – can be validated by the Luhn  algorithm. So when you enter a dummy credit card number for testing such as 4111111111111111 for VISA, suffice to say it can be validated by an implementation of Luhn Algorithm. Consequently before the credit card number is sent across the network for validation, it can be validated locally as well reducing expenses and latency.

For more information and sample implementations of Luhn Algorithm in various languages, please refer to the wiki page on Credit Card numbers.

Leave a Reply

Your email address will not be published. Required fields are marked *

     

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">