RE: Credit Card Identifyers

nmad <[email protected]> 8 Aug 2003 02:06:58 -0000
Newsgroups gmane.comp.web.oscommerce.tips
Message-ID <786bdea8b06a4041db2624ae9e800536@osCommerce-Forums>
This message was sent from: Tips and Tricks
http://forums.oscommerce.com/viewtopic.php?p=209777#209777
----------------------------------------------------------------

ereg('^589892[0-9]{10}$', $this->ccnumber) would be the one for a 16 digit card.  I got the 10 in {} by subtracting 6 (the number of digits in 589892) from 16.  If you needed 13 digits, you would subtract 6 from 13 and get 7, with which you would replace the 10.

Hth,
Matt[/quote]
Thanks for your reply, i add the lines succefully, but when order a product with a 16 digit card that start with 589892 they say "The credit card number entered is invalid.<br>Please check the number and try again."