From 033ef9c4926fdc7e61b0093c7e241920ea86da83 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 24 Sep 2024 17:20:00 +1000 Subject: [PATCH] Fixes for CBA Powerboard --- .../CBAPowerBoard/Models/Gateway.php | 36 +++++-------------- app/PaymentDrivers/CBAPowerBoard/Settings.php | 2 +- 2 files changed, 10 insertions(+), 28 deletions(-) diff --git a/app/PaymentDrivers/CBAPowerBoard/Models/Gateway.php b/app/PaymentDrivers/CBAPowerBoard/Models/Gateway.php index d36e176d5ffb..2bf85301ed7d 100644 --- a/app/PaymentDrivers/CBAPowerBoard/Models/Gateway.php +++ b/app/PaymentDrivers/CBAPowerBoard/Models/Gateway.php @@ -13,35 +13,17 @@ namespace App\PaymentDrivers\CBAPowerBoard\Models; 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( - string $_id, - string $name, - string $type, - string $mode, - string $created_at, - string $updated_at, - bool $archived, - bool $default, - string $verification_status + public string $_id, + public string $name, + public string $type, + public string $mode, + public string $created_at, + public string $updated_at, + public bool $archived, + public bool $default, + public string $verification_status = '' ) { $this->_id = $_id; $this->name = $name; diff --git a/app/PaymentDrivers/CBAPowerBoard/Settings.php b/app/PaymentDrivers/CBAPowerBoard/Settings.php index dc3bffb29316..d94dafbd2fda 100644 --- a/app/PaymentDrivers/CBAPowerBoard/Settings.php +++ b/app/PaymentDrivers/CBAPowerBoard/Settings.php @@ -74,7 +74,7 @@ class Settings { $settings = $this->getSettings(); - if(!property_exists($settings,'gateways')){ + if(!property_exists($settings, 'gateways')){ $this->updateSettings(); $settings = $this->getSettings(); }