mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Update payment notifications
This commit is contained in:
parent
0472cb97f8
commit
fb4a4ac126
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user