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; }