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;