mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 13:24:29 -04: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);
|
$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 collect($gateways)->first(function (Gateway $gateway) {
|
||||||
return $gateway->_id == $this->powerboard->company_gateway->getConfigField('gatewayId');
|
return $gateway->_id == $this->powerboard->company_gateway->getConfigField('gatewayId');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user