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:
parent
41d80a7a82
commit
645d1476c4
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user