PATH:
home
/
letacommog
/
letaweb
/
admin
/
controllers
<?php class CheckoutController extends PController { public $layout = 'column1'; public function actionIndex() { $payment_type = $_REQUEST['payment_type']; $planId = $_REQUEST['planId']; $wwpt = $_REQUEST['wwpt']; switch ($payment_type) { case 'paypal': $this->redirect(array('paypal/index', 'id' => $planId, 'wwpt' => $wwpt)); break; } } public function actionError() { if ($error = Yii::app()->errorHandler->error) { if (Yii::app()->request->isAjaxRequest) { echo $error['message']; } else { $this->render('error', $error); } } } public function actionExecute() { $type = $_POST["wwwpt"]; $payment = Yii::app()->payment->getPayment($type); if (isset($payment)) { $payment->processFormData(); } } public function actionReturn() { $payment_type = $_GET["payment_type"]; $payment = Yii::app()->payment->getPayment($payment_type); if(!isset($payment)) { return; } $payment->handleReturn(); } }
[+]
..
[-] AjaxController.php
[edit]
[-] SiteController.php
[edit]
[-] IpnController.php
[edit]
[-] StatController.php
[edit]
[-] BuilderController.php
[edit]
[-] BlogController.php
[edit]
[-] UserController.php
[edit]
[-] CheckoutController.php
[edit]
[-] PaypalController.php
[edit]