mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Use redirect away for mollie
This commit is contained in:
parent
a3b1ea41e3
commit
7c50231c26
@ -91,7 +91,7 @@ class CreditCard
|
|||||||
if ($payment->status === 'open') {
|
if ($payment->status === 'open') {
|
||||||
$this->mollie->payment_hash->withData('payment_id', $payment->id);
|
$this->mollie->payment_hash->withData('payment_id', $payment->id);
|
||||||
|
|
||||||
return redirect($payment->getCheckoutUrl());
|
return redirect()->away($payment->getCheckoutUrl());
|
||||||
}
|
}
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
return $this->processUnsuccessfulPayment($e);
|
return $this->processUnsuccessfulPayment($e);
|
||||||
@ -151,7 +151,7 @@ class CreditCard
|
|||||||
if ($payment->status === 'open') {
|
if ($payment->status === 'open') {
|
||||||
$this->mollie->payment_hash->withData('payment_id', $payment->id);
|
$this->mollie->payment_hash->withData('payment_id', $payment->id);
|
||||||
|
|
||||||
return redirect($payment->getCheckoutUrl());
|
return redirect()->away($payment->getCheckoutUrl());
|
||||||
}
|
}
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$this->processUnsuccessfulPayment($e);
|
$this->processUnsuccessfulPayment($e);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user