RE: Credit Card Identifyers
iiinetworks <[email protected]> 7 Aug 2003 20:38:38 -0000
| Newsgroups | gmane.comp.web.oscommerce.tips |
|---|---|
| Message-ID | <36cb3f150b5ef009419f5cab3e85455b@osCommerce-Forums> |
This message was sent from: Tips and Tricks
http://forums.oscommerce.com/viewtopic.php?p=209618#209618
----------------------------------------------------------------
[quote="nmad"]I nedd to add local credit cards to cc_validation.php.
My problem is that i don´t understand the rules to add it (ereg('^(3[0-9]{4}|2131|1800)[0-9]{11}$', ¿?)
I need to add a rule to add one of the local credit cards that start with numbers 589892[/quote]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