Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

I have the contribution "Swich 1.6" By Simon Cranmer installed which i done some time ago that works fine for all my switch and credit card applications to my site (I just record the information on the website and manually take payments).

 

But I now can take Amex, and i cannot get it to accept a 4 digit number, in the admin section i have set min CVV as 3 and Max Cvv as 4, I went into the data base and set the Varchar of the CV_CVV as 4 but it wil not accept 4 digit number in the checkout_payment.php, the error message is

 

<font color=\"#FF0000\"><b>Invalid</b></font> CVV details, you must enter the 3 digits on the back of the card

 

please could someone direct me to the right area for me to continue, I have spent all morning going through the forum and do not really want to experiment without any guidence as the website is working fine apart from this.

 

Thank you in advance

 

David

David

Posted

Simon Cranmer. Kindly got back to me direct with a code change snippet that seems to work a treat

 

in catalog\includes\classes\cc_validation.php around line 158

 

(mine was line 244)

 

find

 

if ( empty($cc_cvv) || strlen(strval($cc_cvv)) != 3 ) {

 

replace with

 

if ( empty($cc_cvv) || (strlen(strval($cc_cvv)) != 3 &&

strlen(strval($cc_cvv)) != 4) ) {

 

this allowed the 4 digit CVV number to Pass as normal as well as all the 3 digit CVV numbers for visa, mastercard and Debit cards alike

 

Simon asked me to post this answer on the forum in the hope it will assist someone like me

 

Thanks Simon

 

David

David

Posted

Um...I only have 86 lines on this cc_validation.php page and there appears to be NO CCV section at all...I have the latest build (just downloaded it) ...

 

What am I missing here?? as I use CCV exclusively...

 

Thanks

Posted
Um...I only have 86 lines on this cc_validation.php page and there appears to be NO CCV section at all...I have the latest build (just downloaded it) ...

 

What am I missing here?? as I use CCV exclusively...

 

Thanks

 

My Version is heavily Customised, and i think you will find this applies to the contribution Switch_1.6 whih can be found here http://www.oscommerce.com/community/contri...1/search,switch

David

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...