From 552afe33747fb2fdbaa6e6cbf5107773112f5dfa Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 5 Jul 2021 20:45:00 +1000 Subject: [PATCH] Minor fixes --- app/Listeners/Payment/PaymentNotification.php | 1 - app/Models/User.php | 2 ++ app/PaymentDrivers/PayFast/CreditCard.php | 6 ++++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/app/Listeners/Payment/PaymentNotification.php b/app/Listeners/Payment/PaymentNotification.php index a5aa1f07c8bc..d1a7a7b94748 100644 --- a/app/Listeners/Payment/PaymentNotification.php +++ b/app/Listeners/Payment/PaymentNotification.php @@ -71,7 +71,6 @@ class PaymentNotification implements ShouldQueue } - /*Google Analytics Track Revenue*/ if (isset($payment->company->google_analytics_key)) { $this->trackRevenue($event); diff --git a/app/Models/User.php b/app/Models/User.php index 8c6ad83f8df9..8533c211784c 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -161,6 +161,8 @@ class User extends Authenticatable implements MustVerifyEmail public function setCompany($company) { $this->company = $company; + + return $this; } /** diff --git a/app/PaymentDrivers/PayFast/CreditCard.php b/app/PaymentDrivers/PayFast/CreditCard.php index f97c6c333a1e..d3267fe041d5 100644 --- a/app/PaymentDrivers/PayFast/CreditCard.php +++ b/app/PaymentDrivers/PayFast/CreditCard.php @@ -22,6 +22,7 @@ use App\Models\SystemLog; use App\PaymentDrivers\PayFastPaymentDriver; use Illuminate\Support\Str; use Illuminate\Support\Facades\Cache; +use Illuminate\Http\Request; class CreditCard { @@ -184,5 +185,10 @@ class CreditCard return render('gateways.payfast.authorize', $data); } + + public function processPaymentResponse(Request $request) + { + + } }