From b9bbbaa6d0c565e42f1afb567229122e12c787dc Mon Sep 17 00:00:00 2001 From: Daniel Civit Date: Wed, 11 Dec 2024 15:20:13 +0100 Subject: [PATCH] PLGCSCS-158: Change the method being used for redirect the user to the payment page (#62) --- src/app/payments/multisafepay.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/payments/multisafepay.php b/src/app/payments/multisafepay.php index 05a7277..3e70e20 100644 --- a/src/app/payments/multisafepay.php +++ b/src/app/payments/multisafepay.php @@ -464,14 +464,15 @@ } if (!isset($msp->error)) { - fn_redirect($url, true, true); + // fn_redirect is not working because override the URL with a wrong encoding, and iDEAL 2.0 fails. + header('Location: ' . $url); exit; } else { fn_set_notification('E', "There was an error while processing your transaction: (Code: $msp->error)", ""); $url = fn_url("checkout.cart", AREA, 'current'); - fn_redirect($url); + header('Location: ' . $url); } exit; }