diff --git a/app/Listeners/Payment/PaymentNotification.php b/app/Listeners/Payment/PaymentNotification.php index 5f581f88b3f8..b1b7c82eef12 100644 --- a/app/Listeners/Payment/PaymentNotification.php +++ b/app/Listeners/Payment/PaymentNotification.php @@ -39,7 +39,6 @@ class PaymentNotification implements ShouldQueue * Handle the event. * * @param object $event - * @return bool */ public function handle($event) { @@ -51,6 +50,15 @@ class PaymentNotification implements ShouldQueue $payment = $event->payment; + + /*Google Analytics Track Revenue*/ + if (isset($payment->company->google_analytics_key)) { + $this->trackRevenue($event); + } + + if($payment->is_manual) + return; + /*User notifications*/ foreach ($payment->company->company_users as $company_user) { $user = $company_user->user; @@ -80,10 +88,6 @@ class PaymentNotification implements ShouldQueue } } - /*Google Analytics Track Revenue*/ - if (isset($payment->company->google_analytics_key)) { - $this->trackRevenue($event); - } } private function trackRevenue($event)