public function create() { if ($this->validateInput()) { $this->load->library("Messaging"); Messaging::submitSystemMessage($this->customer->getId(), 0, SYS_MSG_ADD_CREDIT, array('amount' => $this->request->request['amount'], 'currency' => $this->request->request['currency'], 'comment' => $this->request->request['comment'], 'status' => ADD_CREDIT_STATUS_PENDING)); $this->session->data['notifications']['success'] = $this->language->get('SUCCESS_ADD_CREDIT_REQUEST_SENT'); $this->redirect($this->url->link('account/account', '', 'SSL')); } else { $this->index(); } }