From 7c50231c26a05a88e8971f2ad3b0153fca8efd8e Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 8 Dec 2022 22:27:09 +1100 Subject: [PATCH] Use redirect away for mollie --- app/PaymentDrivers/Mollie/CreditCard.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/PaymentDrivers/Mollie/CreditCard.php b/app/PaymentDrivers/Mollie/CreditCard.php index 8268f80f638d..0a6eb420a9e9 100644 --- a/app/PaymentDrivers/Mollie/CreditCard.php +++ b/app/PaymentDrivers/Mollie/CreditCard.php @@ -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);