Zen Cart Logo

Add new credit card

Locked

Views: 1,165

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
2 Jan 2007, 7:42 PM
#1
ngr avatar

ngr

New Zenner

Join Date:
Dec 2006
Posts:
23
Plugin Contributions:
0

Add new credit card

Hello.
I´ll process credit cards manually offline so i enable the CC payment module.
What i need to do now is to accept a different credit card type, not listed in Zen Cart. It´s a regional credit card and start with "589892"(14 digits in totall).
It´s possible to start accpeting these type of cc using the actual cc.php module???

thanks!, and have a happy new year!

2 Jan 2007, 7:53 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Add new credit card

I believe Maestro cards fall into that range ... 560000-589999 but are 16 digits in length. You might try enabling Maestro in Admin->Configuration->Credit Cards.
(Maestro was added in v1.3.7)

If you are a programmer and must add your own CC number algorithm, you can write custom code into the cc_validation class file. Note that this file is not overridable so you will have to redo your customizations when upgrading. You will need a good understanding of regex and PHP to make the changes. You may also need to study and understand LUHN or MOD10 check-digit algorithms.

2 Jan 2007, 11:37 PM
#3
ngr avatar

ngr

New Zenner

Join Date:
Dec 2006
Posts:
23
Plugin Contributions:
0

Re: Add new credit card

Sorry, the card is 16 digits in length not 14. I enable maestro, but don´t work fine.
I´m trying to change maestro algorithm without success.

/***** MAESTRO *****/
elseif (( (($NumberLeft6 >= 493698) && ($NumberLeft6 <= 493699))
|| ($NumberLeft6 == 490303)
|| (($NumberLeft6 >= 633302) && ($NumberLeft6 <= 633349))
|| (($NumberLeft6 >= 675900) && ($NumberLeft6 <= 675999))
|| (($NumberLeft6 >= 500000) && ($NumberLeft6 <= 509999))
|| (($NumberLeft6 >= 560000) && ($NumberLeft6 <= 589999))
|| (($NumberLeft6 >= 600000) && ($NumberLeft6 <= 699999))
) && (ereg('[0-9]{16}', $this->cc_number)) and CC_ENABLED_MAESTRO=='1') {
$this->cc_type = "Maestro";
}

The only thing i now is that the card i need to add, start always with these "589892" How can i setup the algorithm correctly?.

thanks!