mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-14 15:13:29 +01:00
Fixes for gateway id
This commit is contained in:
parent
16d716230b
commit
ae31a457da
@ -66,9 +66,10 @@ class Settings
|
||||
default => $type = self::GATEWAY_CBA,
|
||||
};
|
||||
|
||||
if($type == self::GATEWAY_CBA)
|
||||
return $this->powerboard->company_gateway->getConfigField('gatewayId') ?? $this->getGatewayByType($type);
|
||||
|
||||
if($type == self::GATEWAY_CBA && strlen($this->powerboard->company_gateway->getConfigField('gatewayId') ?? '') > 1){
|
||||
return $this->powerboard->company_gateway->getConfigField('gatewayId');
|
||||
}
|
||||
|
||||
return $this->getGatewayByType($type);
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user