Skip to content

Commit

Permalink
PLGCSCS-158: Change the method being used for redirect the user to th…
Browse files Browse the repository at this point in the history
…e payment page (#62)
  • Loading branch information
danielcivit authored Dec 11, 2024
1 parent 5647622 commit b9bbbaa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app/payments/multisafepay.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit b9bbbaa

Please sign in to comment.