From 645d1476c4870efa545d77f2ff01780d6a0e051a Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Fri, 27 Apr 2018 15:29:16 +0300 Subject: [PATCH] Fix for gateway test mode --- .../PaymentDrivers/GoCardlessV2RedirectPaymentDriver.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Ninja/PaymentDrivers/GoCardlessV2RedirectPaymentDriver.php b/app/Ninja/PaymentDrivers/GoCardlessV2RedirectPaymentDriver.php index 7d5050e4a1a6..d1d8163633a5 100644 --- a/app/Ninja/PaymentDrivers/GoCardlessV2RedirectPaymentDriver.php +++ b/app/Ninja/PaymentDrivers/GoCardlessV2RedirectPaymentDriver.php @@ -34,6 +34,10 @@ class GoCardlessV2RedirectPaymentDriver extends BasePaymentDriver $config['secret'] = $config['webhookSecret']; $this->gateway->initialize($config); + if (isset($config['testMode']) && $config['testMode']) { + $this->gateway->setTestMode(true); + } + return $this->gateway; }