From b243ce46438f09e6057a94642b8e28c0dc90b6a4 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 2 Oct 2019 13:00:51 +1000 Subject: [PATCH] Log system events --- app/Models/CompanyGateway.php | 4 ++++ app/PaymentDrivers/BasePaymentDriver.php | 3 +++ 2 files changed, 7 insertions(+) diff --git a/app/Models/CompanyGateway.php b/app/Models/CompanyGateway.php index de59a60abe0c..a0da1e9867c7 100644 --- a/app/Models/CompanyGateway.php +++ b/app/Models/CompanyGateway.php @@ -20,6 +20,10 @@ use Illuminate\Database\Eloquent\Model; class CompanyGateway extends BaseModel { + + protected $fillable = [ + ]; + public static $credit_cards = [ 1 => ['card' => 'images/credit_cards/Test-Visa-Icon.png', 'text' => 'Visa'], 2 => ['card' => 'images/credit_cards/Test-MasterCard-Icon.png', 'text' => 'Master Card'], diff --git a/app/PaymentDrivers/BasePaymentDriver.php b/app/PaymentDrivers/BasePaymentDriver.php index 1b3e554e4026..781f0df7fb7b 100644 --- a/app/PaymentDrivers/BasePaymentDriver.php +++ b/app/PaymentDrivers/BasePaymentDriver.php @@ -18,6 +18,7 @@ use App\Models\CompanyGateway; use App\Models\GatewayType; use App\Models\Invoice; use App\Models\Payment; +use App\Utils\Traits\SystemLogTrait; use Illuminate\Support\Carbon; use Illuminate\Support\Facades\Auth; use Omnipay\Omnipay; @@ -43,6 +44,8 @@ use Omnipay\Omnipay; */ class BasePaymentDriver { + use SystemLogTrait; + /* The company gateway instance*/ protected $company_gateway;