Redirecting to Sagepay pages during payment
When I've completed the checkout form and submit payment, I get redirected to Sagepay's own payment page where I am having to complete credit card details again. Is there a way of stopping this as it is totally out of style with the website and doesn't inspire confidence with the paying customer?
You've commented following out for me... is this the reason the redirect to Sagepay is happening?
if (empty($_SERVER['HTTPS'])) {
//$testRedirect = "https://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
$testRedirect = "https://1055116435.n1442724.test.prositehosting.co.uk".$_SERVER['REQUEST_URI'];
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $testRedirect);
curl_setopt($c, CURLOPT_TIMEOUT, 90);
curl_setopt($c, CURLOPT_SSL_VERIFYPEER, 1);
curl_setopt($c, CURLOPT_SSL_VERIFYHOST, 1);
$result = curl_exec($c);
if ($result) {
header("location: ".$testRedirect);
die();
}
Thanks.
Mat