mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-20 00:11:35 +02: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'];
|
$config['secret'] = $config['webhookSecret'];
|
||||||
$this->gateway->initialize($config);
|
$this->gateway->initialize($config);
|
||||||
|
|
||||||
|
if (isset($config['testMode']) && $config['testMode']) {
|
||||||
|
$this->gateway->setTestMode(true);
|
||||||
|
}
|
||||||
|
|
||||||
return $this->gateway;
|
return $this->gateway;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user