1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-13 22:54:25 +01:00

Fixes for gateway id

This commit is contained in:
David Bomba 2024-09-24 09:15:22 +10:00
parent 16d716230b
commit ae31a457da

View File

@ -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);
}