1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Fix for gateway test mode

This commit is contained in:
Hillel Coren 2018-04-27 15:29:16 +03:00
parent 41d80a7a82
commit 645d1476c4

View File

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