コード例 #1
0
ファイル: Alipay.php プロジェクト: xinson/yafPlus
 public function notifyActionAction()
 {
     $params = array('payment_agent' => 'alipay', 'method' => 'notify_action', 'data' => $this->input);
     try {
         Hook::listen('process_payment', $event = new EventData($params));
         if ($event->getData('result/0/error_code')) {
             throw new Exception();
         }
         //$this->_ajaxReturn('success','200','EVAL');
         echo "success";
     } catch (Exception $e) {
         echo "fail";
     }
 }