public function processPayment(Payments $payment) { $payment->status = Payments::STATUS_WAITOFFLINE; $payment->update(array('status')); try { $notifier = new Notifier(); $notifier->raiseEvent('onOfflinePayment', $payment); } catch (CHttpException $e) { } return array('status' => Paysystem::RESULT_OK, 'message' => tt('Thank you! Notification of your payment sent to the administrator.', 'payment')); }