ziggy13 Posted September 11, 2006 Share Posted September 11, 2006 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 More sharing options...
jasonabc Posted September 11, 2006 Share Posted September 11, 2006 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'; } Jason My Contributions: Paypal Payflow PRO | Rollover Category Images | Authorize.net Invoice Number Fix Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.