Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Blocking Discover and Amex


ziggy13

Recommended Posts

I need to block Amex and Discover credit cards because my company does not accept them. I have put up notices and images on my website showing that we only take Visa & MC but people still put Discover cards in. I want to completely block people from being able to enter a Visa or Discover card on my site. What is the best way to do this?

Link to comment
Share on other sites

open /catalog/includes/classes/cc_validation.php and remove these two if statements:

 

elseif (ereg('^6011[0-9]{12}$', $this->cc_number)) {

$this->cc_type = 'Discover';

}

 

and

 

elseif (ereg('^3[47][0-9]{13}$', $this->cc_number)) {

$this->cc_type = 'American Express';

}

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...