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

Fixes for CBA Powerboard

This commit is contained in:
David Bomba 2024-09-24 17:00:24 +10:00
parent 8d636fd0a3
commit bfe278e639

View File

@ -81,7 +81,7 @@ class Settings
$gateways = (new \App\PaymentDrivers\CBAPowerBoard\Models\Parse())->encode(Gateway::class."[]", $settings->gateways);
if ($gateway_type_id == GatewayType::CREDIT_CARD && strlen($this->powerboard->company_gateway->getConfigField('gatewayId') ?? '') > 1) {
if ($gateway_type_const == self::GATEWAY_CBA && strlen($this->powerboard->company_gateway->getConfigField('gatewayId') ?? '') > 1) {
return collect($gateways)->first(function (Gateway $gateway) {
return $gateway->_id == $this->powerboard->company_gateway->getConfigField('gatewayId');