Example #1
0
 public function updateAction()
 {
     $this->form = $this->createUpdateForm();
     if ($this->form->isSubmitted() && $this->form->validate()) {
         $echeck = $this->getDi()->echeckRecord;
         $this->form->toEcheckRecord($echeck);
         $echeck->user_id = $this->getDi()->auth->getUserId();
         $result = new Am_Paysystem_Result();
         $this->plugin->storeEcheck($echeck, $result);
         if ($result->isSuccess()) {
             return $this->redirectLocation(REL_ROOT_URL . '/member');
         } else {
             $this->form->getElementById('echeck_ban-0')->setError($result->getLastError());
         }
     }
     $this->view->form = $this->form;
     $this->view->invoice = null;
     $this->view->display_receipt = false;
     $this->view->display('echeck/info.phtml');
 }
Example #2
0
 public function init()
 {
     parent::init();
     $this->getDi()->blocks->add(new Am_Block('thanks/success', 'SmartDebit Statement', 'smart-debit-statement', $this, array($this, 'renederStatement')));
 }
Example #3
0
 protected function _afterInitSetupForm(Am_Form_Setup $form)
 {
     parent::_afterInitSetupForm($form);
     $form->setTitle(___("Authorize.NET eCheck"));
 }