VALID:
TYPE:
| Credit Card Type | Credit Card Number |
|---|---|
| American Express | 371449635398431 |
| Diners Club | 3056930902590400 |
| Discover | 6011111111111117 |
| JCB | 3530111333300000 |
| MasterCard | 5555555555554444 |
| Visa | 4111111111111111 |
| Union Pay | 6233222222222222 |
| RuPay | 6027777777776666 |
This program works on Luhn algorithm, also known as the modulus 10 or mod 10 algorithm, which is a simple checksum formula used to validate a variety of identification numbers, such as credit card numbers, IMEI numbers, Canadian Social Insurance Numbers.