Fixes for CBA Powerboard

This commit is contained in:
David Bomba 2024-09-24 17:20:00 +10:00
parent bfe278e639
commit 033ef9c492
2 changed files with 10 additions and 28 deletions

View File

@ -13,35 +13,17 @@ namespace App\PaymentDrivers\CBAPowerBoard\Models;
class Gateway class Gateway
{ {
/** @var string */
public string $_id;
/** @var string */
public string $name;
/** @var string */
public string $type;
/** @var string */
public string $mode;
/** @var string */
public string $created_at;
/** @var string */
public string $updated_at;
/** @var bool */
public bool $archived;
/** @var bool */
public bool $default;
/** @var string */
public string $verification_status;
public function __construct( public function __construct(
string $_id, public string $_id,
string $name, public string $name,
string $type, public string $type,
string $mode, public string $mode,
string $created_at, public string $created_at,
string $updated_at, public string $updated_at,
bool $archived, public bool $archived,
bool $default, public bool $default,
string $verification_status public string $verification_status = ''
) { ) {
$this->_id = $_id; $this->_id = $_id;
$this->name = $name; $this->name = $name;

View File

@ -74,7 +74,7 @@ class Settings
{ {
$settings = $this->getSettings(); $settings = $this->getSettings();
if(!property_exists($settings,'gateways')){ if(!property_exists($settings, 'gateways')){
$this->updateSettings(); $this->updateSettings();
$settings = $this->getSettings(); $settings = $this->getSettings();
} }