Valid Credit Card Numbers
Created: Last updated:
If you develop a shopping cart you will have to test your scripts and also perform some credit card validation. In Zend Framework we have Zend_Validate_Creditcard which actually validates the number against a variety of credit card institutes; hence, you need some numbers that work. Not real numbers in a sense of existing credit cards (unless you are eager to use your own credit cards) but numbers that are real in a sense that they pass validation..
I found it very hard and somewhat unbelievable that there are no sources out there with some lists or even a generator. What I found are quite a bunch of websites that tell you how to validate a number. Who needs that?
I have not found a valid number generator so far and I am thinking about writing one but right now I am super busy. So, like a true human being and as such a hunter-gatherer I came back with some numbers I found. Here is a little list of valid credit numbers.
- AMEXCO *
- DINERS CLUB
- 38520000023237 **
- 30569309025904 **
- 3530111333300000 **
- 3566002020360505 **
* Note that for AMEXCO if you have to run validation tests that the CVV number is 4 digits. All other CC institutes have 3-digit number.
** I have not found time yet to test these numbers with Zend_Validate_Creditcard but the rest works fine and passes validation.
Maybe some time later I will also find some time to write a little generator so we can create a bunch of numbers at will. As for now the list outta do it.