RE: Credit Card Identifyers

dreamscape <[email protected]> 24 Jul 2003 14:49:36 -0000
Newsgroups gmane.comp.web.oscommerce.tips
Message-ID <f5d53a6db25b6b391e16cd3a73dc30b3@osCommerce-Forums>
This message was sent from: Tips and Tricks
http://forums.oscommerce.com/viewtopic.php?p=201219#201219
----------------------------------------------------------------

to expand on my previous statement, credit card validation scripts break down like this:

- Try to identify the card type, if possible (Visa, MC, AMEX, etc)
- Check the cards expiration date has not passed
- Run the number through a MOD 10 checksum for a quick check for a valid cc number

Again, all I changed here is the part where it tries to identify the card type.  Nothing in the MOD 10 checksum is affected.

Again, the point of the card identifyers is to try to identify the card if possible.  The identifyers are not to say which card types you do and don't accept.  That is my personal belief anyway.