Credit card numbers are not random. They can be checked by a mathematical formula for validity. Each kind of credit card uses a slightly different rule.
This sample form checks credit cards for validity, so you must enter a valid credit card number. While testing, only use the credit card numbers listed here. Other numbers produce an error.
Expiration Date must be a valid date in the future (use the mmyy format).
Test Credit Card Account Numbers
Credit Card Type
Credit Card Number
American Express Corporate
Note : Even though this number has a different character count than the other test numbers, it is the correct and functional number.