Use redirect away for mollie

This commit is contained in:
David Bomba 2022-12-08 22:27:09 +11:00
parent a3b1ea41e3
commit 7c50231c26

View File

@ -91,7 +91,7 @@ class CreditCard
if ($payment->status === 'open') {
$this->mollie->payment_hash->withData('payment_id', $payment->id);
return redirect($payment->getCheckoutUrl());
return redirect()->away($payment->getCheckoutUrl());
}
} catch (\Exception $e) {
return $this->processUnsuccessfulPayment($e);
@ -151,7 +151,7 @@ class CreditCard
if ($payment->status === 'open') {
$this->mollie->payment_hash->withData('payment_id', $payment->id);
return redirect($payment->getCheckoutUrl());
return redirect()->away($payment->getCheckoutUrl());
}
} catch (\Exception $e) {
$this->processUnsuccessfulPayment($e);