From 9975691ef48da7c73852c7ac098fbefadbcac532 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Wed, 13 Jan 2021 13:41:04 +0100 Subject: [PATCH] Remove redirect redirect --- .../CheckoutComPaymentDriver.php | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/app/PaymentDrivers/CheckoutComPaymentDriver.php b/app/PaymentDrivers/CheckoutComPaymentDriver.php index 04a82cb15e..726dac89b8 100644 --- a/app/PaymentDrivers/CheckoutComPaymentDriver.php +++ b/app/PaymentDrivers/CheckoutComPaymentDriver.php @@ -121,23 +121,11 @@ class CheckoutComPaymentDriver extends BaseDriver public function authorizeView($data) { - if (count($this->required_fields) > 0) { - return redirect() - ->route('client.profile.edit', ['client_contact' => auth()->user()->hashed_id]) - ->with('missing_required_fields', $this->required_fields); - } - return $this->payment_method->authorizeView($data); } public function authorizeResponse($data) { - if (count($this->required_fields) > 0) { - return redirect() - ->route('client.profile.edit', ['client_contact' => auth()->user()->hashed_id]) - ->with('missing_required_fields', $this->required_fields); - } - return $this->payment_method->authorizeResponse($data); } @@ -149,12 +137,6 @@ class CheckoutComPaymentDriver extends BaseDriver */ public function processPaymentView(array $data) { - if (count($this->required_fields) > 0) { - return redirect() - ->route('client.profile.edit', ['client_contact' => auth()->user()->hashed_id]) - ->with('missing_required_fields', $this->required_fields); - } - return $this->payment_method->paymentView($data); } @@ -166,12 +148,6 @@ class CheckoutComPaymentDriver extends BaseDriver */ public function processPaymentResponse($request) { - if (count($this->required_fields) > 0) { - return redirect() - ->route('client.profile.edit', ['client_contact' => auth()->user()->hashed_id]) - ->with('missing_required_fields', $this->required_fields); - } - return $this->payment_method->paymentResponse($request); }