From 253e2254effe6e457ace4adc8f60507ee39bd3d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Wed, 13 Jan 2021 13:41:20 +0100 Subject: [PATCH] Remove redirect redirect --- app/PaymentDrivers/PayPalExpressPaymentDriver.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/app/PaymentDrivers/PayPalExpressPaymentDriver.php b/app/PaymentDrivers/PayPalExpressPaymentDriver.php index 9a18837687ec..387b29c1ce9a 100644 --- a/app/PaymentDrivers/PayPalExpressPaymentDriver.php +++ b/app/PaymentDrivers/PayPalExpressPaymentDriver.php @@ -80,12 +80,6 @@ class PayPalExpressPaymentDriver extends BaseDriver public function processPaymentView($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); - } - $this->initializeOmnipayGateway(); $this->payment_hash->data = array_merge((array) $this->payment_hash->data, ['amount' => $data['total']['amount_with_fee']]); @@ -120,12 +114,6 @@ class PayPalExpressPaymentDriver 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); - } - $this->initializeOmnipayGateway(); $response = $this->omnipay_gateway