function preDispatch() { $this->_testMode = true; $this->_defaultCurrency = 'USD'; $tblPaymentSetting = new Pandamp_Modules_Payment_Setting_Model_PaymentSetting(); $usdIdrEx = $tblPaymentSetting->fetchAll($tblPaymentSetting->select()->where(" settingKey= 'USDIDR'")); $this->_currencyValue = $usdIdrEx[0]->settingValue; $this->view->addHelperPath(ROOT_DIR . '/library/Pandamp/Controller/Action/Helper', 'Pandamp_Controller_Action_Helper'); $this->_helper->layout->setLayout('layout-membership'); $this->_helper->layout->setLayoutPath(array('layoutPath' => ROOT_DIR . '/app/modules/membership/views/layouts')); Zend_Session::start(); }
public function confirmAction() { $this->_checkAuth(); $userId = $this->_userInfo->userId; $tblOrder = new Pandamp_Modules_Payment_Order_Model_Order(); $tblSetting = new Pandamp_Modules_Payment_Setting_Model_PaymentSetting(); $rowset = $tblOrder->getTransactionToConfirm($userId); $numCount = $tblOrder->getTransactionToConfirmCount($userId); $bankAccount = $tblSetting->fetchAll($tblSetting->select()->where("settingKey = 'bankAccount'")); if ($this->_request->get('sended') == 1) { $this->view->sended = 'Payment Confirmation Sent'; } $this->view->numCount = $numCount; $this->view->rowset = $rowset; $this->view->bankAccount = $bankAccount; }