sendNotification() public method

public sendNotification ( Invoice $invoice, $type )
$invoice app\models\Invoice
$type
コード例 #1
0
 /**
  * @param PaymentWasCreated $event
  */
 public function createdPayment(PaymentWasCreated $event)
 {
     // only send emails for online payments
     if (!$event->payment->account_gateway_id) {
         return;
     }
     $this->contactMailer->sendPaymentConfirmation($event->payment);
     $this->sendEmails($event->payment->invoice, 'paid', $event->payment);
     $this->pushService->sendNotification($event->payment->invoice, 'paid');
 }