RE: Credit Card Identifyers

iiinetworks <[email protected]> 8 Aug 2003 02:26:19 -0000
Newsgroups gmane.comp.web.oscommerce.tips
Message-ID <803b7a59ac82517df4106e5324493834@osCommerce-Forums>
This message was sent from: Tips and Tricks
http://forums.oscommerce.com/viewtopic.php?p=209788#209788
----------------------------------------------------------------

Does it pass the checksum.  I.e. do the digits add up correctly?

I assume you have a block of code that looks like this:  [code]} elseif (ereg('^589892[0-9]{10}$', $this->cc_number)) {
  $this->cc_type = 'Local';[/code]Try adding a [code]return 0;[/code]at the end of the cc_type line.  If that works, it is having problems with the other validations.  Confirm that all the values are good (Note:  if 4111 1111 1111 1111 is a valid CC number, then 4111 1111 1111 1112 is not with the other cards mentioned.)  If you are running the cards manually, you can leave that return 0 there and verify the local cards when you are processing them.

Hth,
Matt