コード例 #1
0
ファイル: form.php プロジェクト: adrianlinner333/laravel-5
 /**
  * Action failure status of transaction for form payment
  */
 public function actionFailure()
 {
     // Clear all session
     HelperCommon::clearStore(array('details', 'extra', 'isDeliverySame'));
     $view = new HelperView('form/result');
     $view->setData($this->_resultData());
     $view->render();
 }
コード例 #2
0
 /**
  * Helper for error
  *
  * @param string $errorMessage
  * @param string $backUrl
  */
 protected function helperError($errorMessage, $backUrl)
 {
     $view = new HelperView('common/error');
     $view->setData(array('env' => $this->sagepayConfig->getEnv(), 'vendorName' => $this->sagepayConfig->getVendorName(), 'integrationType' => $this->integrationType, 'backUrl' => $backUrl, 'errorMessage' => $errorMessage, 'exception' => isset($this->data['exception']) ? $this->data['exception'] : false));
     $view->render();
     return;
 }
コード例 #3
0
ファイル: admin.php プロジェクト: adrianlinner333/laravel-5
 /**
  * Action remove all the customers DIRECT mode
  */
 public function actionDeleteAllCustomers()
 {
     HelperCommon::clearStore('account');
     $sagepayToken = new SagepayToken($this->sagepayConfig);
     $cardTokens = ModelAbstract::factory('Card')->getAll();
     foreach ($cardTokens as $card) {
         $sagepayToken->remove($card->token);
     }
     $view = new HelperView('admin/deleted');
     $view->setData(array('env' => $this->sagepayConfig->getEnv(), 'vendorName' => $this->sagepayConfig->getVendorName(), 'integrationType' => $this->integrationType, 'numDeleted' => ModelAbstract::factory('Customer')->deleteAll()));
     $view->render();
 }
コード例 #4
0
ファイル: direct.php プロジェクト: adrianlinner333/laravel-5
 /**
  * Action failure for direct payment
  */
 public function actionFailure()
 {
     // Clear all session
     HelperCommon::clearStore(array('isDeliverySame', 'details', 'extra', 'VendorTxCode'));
     $view = new HelperView('direct/result');
     $view->setData($this->getPaymentResultData());
     $view->render();
 }
コード例 #5
0
ファイル: server.php プロジェクト: adrianlinner333/laravel-5
 /**
  * Action low profile page for server payment
  */
 public function actionLowProfile()
 {
     $view = new HelperView('server/low_profile');
     $view->setData(array('env' => $this->sagepayConfig->getEnv(), 'vendorName' => $this->sagepayConfig->getVendorName(), 'integrationType' => $this->integrationType, 'request' => HelperCommon::getStore('txData')));
     $view->render();
 }
コード例 #6
0
ファイル: index.php プロジェクト: adrianlinner333/laravel-5
 /**
  * Action index front page
  */
 public function actionIndex()
 {
     $view = new HelperView('index/view');
     $view->setLayout($this->layout);
     $view->render();
 }
コード例 #7
0
 /**
  * Action result admin transaction
  */
 public function actionAdminResult()
 {
     $view = new HelperView('admin/result');
     $view->setData(array('env' => $this->sagepayConfig->getEnv(), 'vendorName' => $this->sagepayConfig->getVendorName(), 'integrationType' => $this->integrationType, 'command' => filter_input(INPUT_GET, 'command'), 'status' => filter_input(INPUT_GET, 'status'), 'requestBody' => filter_input(INPUT_GET, 'requestBody'), 'resultBody' => filter_input(INPUT_GET, 'resultBody')));
     $view->render();
 }