X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Populating all Verisign Payflow Pro values. (https://forum.x-cart.com/showthread.php?t=17595)

bobbyftk 10-28-2005 02:16 PM

Populating all Verisign Payflow Pro values.
 
cc_verisign.php leaves out a lot of verisign's values.
here is how to make everything thats missing go to the right place.

open (xcart directory)/payment/cc_verisign.php

add
Code:

$post[] = "BILLTOCOUNTRY=".$userinfo["b_country"];
$post[] = "SHIPTOSTREET=".htmlspecialchars($userinfo["s_address"]);
$post[] = "SHIPTOZIP=".$userinfo["s_zipcode"];
$post[] = "SHIPTOFIRSTNAME=".htmlspecialchars($userinfo["s_firstname"]);
$post[] = "SHIPTOLASTNAME=".htmlspecialchars($userinfo["s_lastname"]);
$post[] = "SHIPTOCITY=".htmlspecialchars($userinfo["s_city"]);
$post[] = "SHIPTOSTATE=".$userinfo["s_state"];
$post[] = "SHIPTOCOUNTRY=".$userinfo["s_country"];
$post[] = "TAXAMT=".$cart["tax_cost"];
$post[] = "FREIGHTAMT=".$cart["shipping_cost"];


right after

Code:

$post = array();
$post[] = "USER=".htmlspecialchars($vs_user);
$post[] = "VENDOR=".$vs_vendor;
$post[] = "PARTNER=".$vs_partner;
$post[] = "PWD=".$vs_pwd;
$post[] = "TRXTYPE=S";
$post[] = "TENDER=C";
$post[] = "ACCT=".$userinfo["card_number"];
$post[] = "EXPDATE=".$userinfo["card_expire"];
$post[] = "AMT=".$cart["total_cost"];
$post[] = "CVV2=".$userinfo["card_cvv2"];
$post[] = "STREET=".htmlspecialchars($userinfo["b_address"]);
$post[] = "ZIP=".$userinfo["b_zipcode"];
$post[] = "FIRSTNAME=".htmlspecialchars($userinfo["b_firstname"]);
$post[] = "LASTNAME=".htmlspecialchars($userinfo["b_lastname"]);
$post[] = "CITY=".htmlspecialchars($userinfo["b_city"]);
$post[] = "STATE=".$userinfo["b_state"];
$post[] = "EMAIL=".$userinfo["email"];
$post[] = "PONUM=".substr(join("",$secure_oid), 0, 17);
$post[] = "COMMENT1=".$userinfo["firstname"]." ".$userinfo["lastname"];
$post[] = "COMMENT2=".$an_prefix.join("-",$secure_oid);


might not serve a purpose for most. but if you have billing/shipping mismtach filters, this is definitely needed.
also just looks better having all the info in the correct fields.

jsa 10-28-2005 06:27 PM

Nice, thanks. I may need this soon.

Does X-Cart play nice with Verisign when all the Payflow security features are turned on, btw?

I've had trouble with other carts not understanding the security related result codes. Some carts won't let the customer finish the checkout process, when they have indeed been charged. It ends up being a mini-nightmare when I have all the filters turned on.

bobbyftk 10-28-2005 06:34 PM

yeah everything seems to work fairly well.

i dont allow customers to have a different ship to. so everything is checked via AVS. i have the avs setting set to light and the cvv set to medium.

seems to work ok for me so far.

jsa 10-28-2005 06:37 PM

Quote:

Originally Posted by bobbyftk
yeah everything seems to work fairly well.

i dont allow customers to have a different ship to. so everything is checked via AVS. i have the avs setting set to light and the cvv set to medium.

seems to work ok for me so far.


Oh, do you have the filters reject orders outright, not review?

I just review everything, and call them if enough pieces look out of place. It's the review bit that keeps sending people back to their cart over and over (other carts), even though they've been charged. If X-Cart parses the "accepted, but under security review" response from Payflow properly, it'll be dream!

Thanks for responding so fast.

bobbyftk 10-28-2005 06:45 PM

yeah i dont mess with review, because then your just asking for a mess.

your customer is going to be either accepted, or rejected. so just reject them outright.

jsa 10-28-2005 06:49 PM

Quote:

Originally Posted by bobbyftk
yeah i dont mess with review, because then your just asking for a mess.

your customer is going to be either accepted, or rejected. so just reject them outright.


awh, that's a bummer. thanks for letting me know.

See, I can see rejecting them outright for AVS, but not all the other stuff...

like living in a high crime area, or shipping to a mail boxes, etc., and all the other things Verisign can detect. I bought the advanced security package, and there's like 50 things it checks... it's really good, but if I set the bulk of them to reject instead of review, i'd throwing good money away.


All times are GMT -8. The time now is 11:25 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.