From 33e2c5d054cf69742d34f890c98cec9d87a99da2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Tue, 19 Oct 2021 18:02:48 +0200 Subject: [PATCH] Initialize GoCardlessPro\Client --- app/PaymentDrivers/GoCardless/SEPA.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/PaymentDrivers/GoCardless/SEPA.php b/app/PaymentDrivers/GoCardless/SEPA.php index 218f705b59c9..d0d1fa3b7224 100644 --- a/app/PaymentDrivers/GoCardless/SEPA.php +++ b/app/PaymentDrivers/GoCardless/SEPA.php @@ -15,9 +15,19 @@ namespace App\PaymentDrivers\GoCardless; use App\Http\Requests\Request; use App\PaymentDrivers\Common\MethodInterface; use App\Http\Requests\ClientPortal\Payments\PaymentResponseRequest; +use App\PaymentDrivers\GoCardlessPaymentDriver; class SEPA implements MethodInterface { + protected GoCardlessPaymentDriver $go_cardless; + + public function __construct(GoCardlessPaymentDriver $go_cardless) + { + $this->go_cardless = $go_cardless; + + $this->go_cardless->init(); + } + public function authorizeView(array $data) { } public function authorizeResponse(Request $request) { }