Sagepay and upgrade

Hi all.

We’ve been using version 1.3.5 -SP2 (hosted with CyberLNC) for a while now very succesfully without any problems, (based on the theory that if it ain’t broke don’t fix it) We now feel it may be time for an upgrade but do not want to loose a lot of the tweeks we’ve done. We have heard upgrades can be bug hungry. Any advice.



Also, we have had this email from Sagepay. -

…We’ve noticed you’re still using the old Protx URLs to send transaction information details to Sage Pay. As part of our system upgrade we now need you to make a minor change to your system by starting to use the Sage Pay URLs as soon as possible…



Can anyone tell me where to find the file that has this information in it, or does an upgrade include the new URLs. Please Note, we are not very computer lit’ here we just fumble through.



Many Thanks Jean

[quote name=‘12voltshop’]Hi all.

We’ve been using version 1.3.5 -SP2 (hosted with CyberLNC) for a while now very succesfully without any problems, (based on the theory that if it ain’t broke don’t fix it) We now feel it may be time for an upgrade but do not want to loose a lot of the tweeks we’ve done. We have heard upgrades can be bug hungry. Any advice.



Also, we have had this email from Sagepay. -

…We’ve noticed you’re still using the old Protx URLs to send transaction information details to Sage Pay. As part of our system upgrade we now need you to make a minor change to your system by starting to use the Sage Pay URLs as soon as possible…



Can anyone tell me where to find the file that has this information in it, or does an upgrade include the new URLs. Please Note, we are not very computer lit’ here we just fumble through.



Many Thanks Jean[/QUOTE]



Hello Jean!

The URLs were changed since the version 2.0.8

In order to correct the URLs in the version 1.3.5 or in the version 2.0.x (before 2.0.8 ) please replace the following part of code:


if (!empty($secure_verified_3d) && empty($already_posted)) {
if ($payment_mode == 'S') {
$post_address = 'https://ukvpstest.protx.com/VSPSimulator/VSPDirectCallback.asp';
} elseif ($payment_mode == 'Y') {
$post_address = 'https://ukvpstest.protx.com/vspgateway/service/direct3dcallback.vsp';
} elseif ($payment_mode == 'N') {
$post_address = 'https://ukvps.protx.com/vspgateway/service/direct3dcallback.vsp';
}
list($a, $return) = fn_https_request('POST', $post_address, $post);
$already_posted = true;
} else {
$pp_merch = $processor_data['params']['vendor'];
$pp_curr = $processor_data['params']['currency'];
if ($processor_data['params']['testmode'] == 'Y') {
$post_address = 'https://ukvpstest.protx.com/vspgateway/service/vspdirect-register.vsp';
} elseif ($processor_data['params']['testmode'] == 'N') {
$post_address = 'https://ukvps.protx.com/vspgateway/service/vspdirect-register.vsp';
}


with this one:


if (!empty($secure_verified_3d) && empty($already_posted)) {
if ($_REQUEST['payment_mode'] == 'Y') {
$post_address = 'https://test.sagepay.com/gateway/service/direct3dcallback.vsp';
} elseif ($_REQUEST['payment_mode'] == 'N') {
$post_address = 'https://live.sagepay.com/gateway/service/direct3dcallback.vsp';
} elseif ($_REQUEST['payment_mode'] == 'S') {
$post_address = 'https://test.sagepay.com/Simulator/VSPDirectCallback.asp';
}
list($a, $return) = fn_https_request('POST', $post_address, $post);
$already_posted = true;
} else {
$pp_merch = $processor_data['params']['vendor'];
$pp_curr = $processor_data['params']['currency'];
if ($processor_data['params']['testmode'] == 'Y') {
$post_address = 'https://test.sagepay.com/gateway/service/vspdirect-register.vsp';
} elseif ($processor_data['params']['testmode'] == 'N') {
$post_address = 'https://live.sagepay.com/gateway/service/vspdirect-register.vsp';
} elseif ($processor_data['params']['testmode'] == 'S') {
$post_address = 'https://test.sagepay.com/Simulator/VSPDirectGateway.asp';
}


in the “protx_direct.php” file, located in the “payments/cc_processors” (for versions 2.0.x “payments”) directory and replace the following part of code:


$post_address = ($processor_data['params']['testmode'] != "N") ? "https://ukvpstest.protx.com/vspgateway/service/vspform-register.vsp" : "https://ukvps.protx.com/vspgateway/service/vspform-register.vsp";


with this one:


if ($processor_data['params']['testmode'] == 'Y') {
$post_address = "https://test.sagepay.com/gateway/service/vspform-register.vsp";
} elseif ($processor_data['params']['testmode'] == 'N') {
$post_address = "https://live.sagepay.com/gateway/service/vspform-register.vsp";
} elseif ($processor_data['params']['testmode'] == 'S') {
$post_address = "https://test.sagepay.com/Simulator/VSPFormGateway.asp";
}


in the “protx_form.php” file, located in the “payments/cc_processors” (for versions 2.0.x “payments”) directory.

Many thanks Forward



Jean

Hi.



I’m probably being dimp, but I’ve found “protx_direct.php” file, located in the “payments/cc_processors” but the scrip shown above is not there. I’ve searched in the ‘Basic’ files and the ‘Skin’ I’m using files and can’t find anything like. It has to be in there somewhere but I’m now at a loss to find it.

Getting desperate. Any suggestions



Thank you

Jean

Think i’ve found it !!!