Fix for gateway test mode
This commit is contained in:
parent
41d80a7a82
commit
645d1476c4
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue