Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

cc_validation.php (accepting Visa Gift Cards?)


mastorna

Recommended Posts

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';
  }

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...