1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-19 16:01:34 +02: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;
}