Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

YourPay - CVV not present or readable


vichon

Recommended Posts

I am using the Linkpoint Connect to access YourPay. There is an option for the Card Verification Value to not be present or readable that my client wants removed.

 

How do I remove this feature forcing the purchases to enter a CVV?

 

Thanks.

Link to comment
Share on other sites

  • 1 year later...
I am using the Linkpoint Connect to access YourPay. There is an option for the Card Verification Value to not be present or readable that my client wants removed.

 

How do I remove this feature forcing the purchases to enter a CVV?

 

Thanks.

 

I would be interested in how to do this as well. Thanks.

Link to comment
Share on other sites

  • 4 weeks later...
I would be interested in how to do this as well. Thanks.

 

change this section of code:

			//perform verification work
		if($result["r_avs"][1]=="N" || $result["r_avs"][3]=="N" || $result["r_approved"] == "DECLINED")
		//if ($result["r_approved"] == "DECLINED")
		{
			$myerrdisplay='';
			if($result["r_approved"] == "DECLINED")
			{
				$newerr=split(":",$result["r_error"]);

				//what happened w/ Address
				if($newerr[3][0]=="N")
					$myerrdisplay.='Address did not match. ';
				else
					$myerrdisplay.='Address verified. ';

				//what happened w/ Zip
				if($newerr[3][1]=="N")
					$myerrdisplay.='Zip did not match. ';
				else
					$myerrdisplay.='Zip verified. ';

				//what happened w/ CVV
				if($newerr[3][3]=="N")
					$myerrdisplay.='CVV or Expiration did not match. ';
				else
					$myerrdisplay.='CVV and Expiration verified. ';
			}else{
				//what happened w/ Address
				if($result["r_avs"][0]=="N")
					$myerrdisplay.='Address did not match. ';
				else
					$myerrdisplay.='Address verified. ';

				//what happened w/ Zip
				if($result["r_avs"][1]=="N")
					$myerrdisplay.='Zip did not match. ';
				else
					$myerrdisplay.='Zip verified. ';

				//what happened w/ CVV
				if($result["r_avs"][3]=="N")
					$myerrdisplay.='CVV or Expiration did not match. ';
				else
					$myerrdisplay.='CVV and Expiration verified. ';
			}

 

To this:

			//perform verification work
		if($result["r_avs"][1]=="N" || $result["r_avs"][3]=="N" || $result["r_approved"] == "DECLINED")
		//if ($result["r_approved"] == "DECLINED")
		{
			$myerrdisplay='';
			if($result["r_approved"] == "DECLINED")
			{
				$newerr=split(":",$result["r_error"]);

				//what happened w/ Address
				if($newerr[3][0]=="N")
					$myerrdisplay.='Address did not match. ';
				else
					$myerrdisplay.='Address verified. ';

				//what happened w/ Zip
				if($newerr[3][1]=="N")
					$myerrdisplay.='Zip did not match. ';
				else
					$myerrdisplay.='Zip verified. ';

				//what happened w/ CVV
				if($newerr[3][3]=="N")
					$myerrdisplay.='CVV or Expiration did not match. ';
				else
					$myerrdisplay.='CVV and Expiration verified. ';
			}else{
				//what happened w/ Address
				if($result["r_avs"][0]=="N")
					$myerrdisplay.='Address did not match. ';
				else
					$myerrdisplay.='Address verified. ';

				//what happened w/ Zip
				if($result["r_avs"][1]=="N")
					$myerrdisplay.='Zip did not match. ';
				else
					$myerrdisplay.='Zip verified. ';

				//what happened w/ CVV
				//1.3 - Added Test for r_avs=S to Change CVV verification to reject no CVV as well as incorrect CVV.  Module would previously accept good or no CVV and reject bad CVV.
				if($result["r_avs"][3]=="N")
					$myerrdisplay.='CVV or Expiration did not match. ';
				elseif($result["r_avs"][3]=="S")
					$myerrdisplay.='CVV Not Provided. ';
				else	
					$myerrdisplay.='CVV and Expiration verified. ';	
			}

 

I haven't put this in the current code online because I wanted to make it an admin option, despite our stores using this. Please also note that this is the Yourpay/Linkpoint API not the connect system though I imagine a similar change would so the trick with regard to a check on the CVV code for the S value being returned by Linkpoint.

 

This applies only to the linkpoint_api.php file of http://www.oscommerce.com/community/contributions,4255.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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...