예제 #1
0
 public function paymentAction()
 {
     try {
         $config = new Zend_Config_Ini(BASE_PATH . DIRECTORY_SEPARATOR . "configs" . DIRECTORY_SEPARATOR . "class.ini", "production");
         $this->view->payment = $config->payment->toArray();
         $bookingId = $this->_getParam("id");
         $bookingModel = new Admin_Model_Booking();
         $this->view->data = $bookingModel->getDetailById($bookingId);
         $this->view->extras = $bookingModel->getExtras($bookingId);
         $this->view->callbackUrl = 'http://rent.4x4offroads.com/dev/index/success';
     } catch (Exception $e) {
         $this->_helper->FlashMessenger->addMessage(array("error" => $e->getMessage()));
     }
 }