There is still an issue I am having, the redirect to the checkout_success.php works, but if you put incorrect credit card details in the redirect to the checkout_failed.php page sends you to: https://www.championnutrition.net.nz/www.championnutrition.net.nz/checkout_failure.php
As far as I can see the redirects to the failure page are in the same format as the redirects to the success page.
I have just changed the checkout_failure to the following and it now works:
if (!$WA_PP_ECO_DoResult->isError) {
$eCart1->redirStr = "www.championnutrition.net.nz/checkout_success.php";
}
else if ("checkout_failure.php" != "") {
header("Location: ". "checkout_failure.php"); exit;
}
Is this correct? I'm a little confused as to why the success page redirect needs the full url where as the failure redirect does not.