Validation of the Luhn Check Sum for any Visa, Mastercard, Discover and American Express credit cards. Our Perl program can also encrypt the number for safety in transferring the card from your secure eCommerce site to you by email and you avoid bank fees for doing this for you.
This program demonstrates how the Luhn validity of a credit card number. It will not tell if the credit card will be accepted by the bank but it will tell you it is a valid number by the Luhn check sum. This is useful on order forms helping a customer enter his card number correctly.
Try the numbers below or see if you are lucky at creating your own number to pass with a valid Luhn Check Sum. Demo Form is in PaleGoldenRod Table below!
Card Type |
Valid Test Number |
Invalid Test Number |
VISA
|
4232 8753 6127 6550 or
4372 8721 7137 6431
|
4372 8721 7137 6421 or
4212 8953 6137 6450
|
Discover
|
6011 5783 6721 1256 or
6011 2271 5596 1361
|
6011 5783 6721 1255 or
6011 2271 5596 1361
|
Master Card
|
5213 4655 2197 4201 or
5743 2188 6422 1394
|
5213 4655 2197 4301 or
5743 2188 6422 1396
|
American Express
|
3715 783101 37654 or
3724 671538 27812
|
3715 793101 37654 or
3724 671538 27816
|
|