mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-14 15:13:29 +01:00
Fixes for CBA Powerboard
This commit is contained in:
parent
8d636fd0a3
commit
bfe278e639
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user