Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Excluding certain CC brands in default CC module

Excluding certain CC brands in default CC module

Locked

Views: 987

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
27 Feb 2008, 3:11 PM
#1
ksolito avatar

ksolito

New Zenner

Join Date:
Nov 2006
Posts:
44
Plugin Contributions:
0

Excluding certain CC brands in default CC module

} elseif (ereg('^(3[0-9]{4}|2131|1800)[0-9]{11}$', $this->cc_number) and CC_ENABLED_JCB=='1') {
$this->cc_type = 'JCB';
} elseif (ereg('^5610[0-9]{12}$', $this->cc_number) and CC_ENABLED_AUSTRALIAN_BANKCARD=='1') {
$this->cc_type = 'Australian BankCard';

Is it as easy as setting CC_ENABLED_* == '0' for the cards we don't accept?

27 Feb 2008, 3:13 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,607
Plugin Contributions:
0

Re: Excluding certain CC brands in default CC module

Even easier- Admin> Configuration> Credit Cards - Turn off the ones you don't take and stay out of the code. :smile:

27 Feb 2008, 4:44 PM
#3
ksolito avatar

ksolito

New Zenner

Join Date:
Nov 2006
Posts:
44
Plugin Contributions:
0

Re: Excluding certain CC brands in default CC module

Thanks!

I don't suppose you could tell me where to enable the display of CC icons? SHOW_ACCEPTED_CREDIT_CARDS = '0' now. I can't find were to change the value.

Apparently I'm still haunted by the ghosts of Oscommerce. :-)

27 Feb 2008, 5:39 PM
#4
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,607
Plugin Contributions:
0

Re: Excluding certain CC brands in default CC module

Same Admin page as above - Credit Card Enabled - Show on Payment