mastorna Posted December 7, 2005 Posted December 7, 2005 I've been having issues getting customers with Visa Gift Cards to get past the cc_validation.php code. I keep on getting a result -1 back which states "The first four digits of your card...." Does OSc, within cc_validation, have an issue with Visa Gift Cards? Are Visa Gift Cards formatted the same. My hunch is that the user is not getting past this regex: if (ereg('^4[0-9]{12}([0-9]{3})?$', $this->cc_number)) { $this->cc_type = 'Visa'; }
Recommended Posts
Archived
This topic is now archived and is closed to further replies.