Forums / Built-in Shipping and Payment Modules / Validate a new credit card

Validate a new credit card

Locked

Views: 947

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
30 Nov 2007, 2:52 AM
#1
jakumpe avatar

jakumpe

New Zenner

Join Date:
Jun 2007
Location:
Arkansas
Posts:
71
Plugin Contributions:
0

Validate a new credit card

I need to know how to add a new credit card to the validation for the manual credit card module. It is accually a gift card but is processed through my credit card terminal. The card is 16 digits, does not have a expiration date or CCV, the number begins with 2008.

Justin Kumpe

30 Nov 2007, 3:40 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: Validate a new credit card

You'd have to add appropriate logic to the cc_validation class script.
Or alter the cc payment module to skip validation if the card matches a certain pattern.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

30 Nov 2007, 3:45 AM
#3
jakumpe avatar

jakumpe

New Zenner

Join Date:
Jun 2007
Location:
Arkansas
Posts:
71
Plugin Contributions:
0

Re: Validate a new credit card

would you be able to tell me how to do this? the code is confusing to me.

Justin Kumpe

30 Nov 2007, 3:46 AM
#4
jakumpe avatar

jakumpe

New Zenner

Join Date:
Jun 2007
Location:
Arkansas
Posts:
71
Plugin Contributions:
0

Re: Validate a new credit card

I am capable of entering the code I am just confused on how to write the code (I have already tried and failed).

Justin Kumpe

30 Nov 2007, 3:57 AM
#5
jakumpe avatar

jakumpe

New Zenner

Join Date:
Jun 2007
Location:
Arkansas
Posts:
71
Plugin Contributions:
0

Re: Validate a new credit card

Also I just realized that I forgot where the validation script was located. Having a hard time finding it again (I was not looking for it when I found it last time).

Justin Kumpe