Testing Credit Card Numbers
In development work, you must always test your functions or expressions for proper results. For credit cards, there are some numbers that are NOT REAL numbers but will verify properly in developmental tests.
Testable Credit Card Numbers
| Card Type | Card Number |
|---|---|
| Master Card (16 Digits) | 5105105105105100 |
| Master Card (16 Digits) | 5555555555554444 |
| Visa (13 Digits) | 4222222222222 |
| Visa (16 Digits) | 4111111111111111 |
| Visa (16 Digits) | 4012888888881881 |
| American Express (15 Digits) | 378282246310005 |
| American Express (15 Digits) | 371449635398431 |
| Amex Corporate (15 Digits) | 378734493671000 |
| Dinners Club (14 Digits) | 38520000023237 |
| Dinners Club (14 Digits) | 30569309025904 |
| Discover (16 Digits) | 6011111111111117 |
| Discover (16 Digits) | 6011000990139424 |
| JCB (16 Digits) | 3530111333300000 |
| JCB (16 Digits) | 3566002020360505 |
* Thanks to http://www.crazysquirrel.com/finance/test-cc.jspx







June 26th, 2008 at 11:15 pm
A friend of mine just emailed me one of your articles from a while back. I read that one a few more. Really enjoy your blog. Thanks