Add Credit Card Number Generator


A generator to return a valid Credit Card #, maybe for a specified Credit Card Type since they have different rules.
Should we be concerned if it's actually valid in that it passes a Mod 10 check? Can that get us in trouble?
Closed Oct 8, 2009 at 8:06 PM by Webjedi


ScottMonnig wrote Oct 7, 2009 at 2:37 AM

Take a look at this and add your thoughts...

I think we're OK doing this since the algorithms are well known. That said, the implementation is simple (totally random digits with a checksum) so the numbers won't work anyway. We can improve the implementation if we want to, to give "valid" card number by Card Type.

Webjedi wrote Oct 8, 2009 at 8:06 PM

That makes sense. The test CanGetCreditCardNumber() does occaisionally fail...logging sperate issue and closing this one since it's in.

wrote Oct 8, 2009 at 8:06 PM

wrote Feb 13, 2013 at 5:37 PM

wrote May 15, 2013 at 11:55 PM