示例#1
0
文件: korta.php 项目: grlf/eyedock
 public function process()
 {
     $this->result = $this->request->getPost();
     //        print_rr($downloadmd5);
     //        print_rre($this->result);
     parent::process();
 }
示例#2
0
文件: Thanks.php 项目: grlf/eyedock
 function process()
 {
     try {
         parent::process();
     } catch (Am_Exception_Paysystem_TransactionAlreadyHandled $e) {
         // do nothing if transaction is already handled
     }
     if (Am_Di::getInstance()->config->get('auto_login_after_signup')) {
         Am_Di::getInstance()->auth->setUser($this->invoice->getUser(), $this->request->getClientIp());
     }
 }
示例#3
0
文件: paymento.php 项目: grlf/eyedock
 public function process()
 {
     $this->result = $this->request->getPost();
     parent::process();
 }
示例#4
0
 public function process()
 {
     $vars = $this->request->getPost();
     $vars['CustomerID'] = $this->plugin->getConfig('CustomerID');
     $vars['UserName'] = $this->plugin->getConfig('UserName');
     $r = new Am_HttpRequest($this->getUrl() . '?' . http_build_query($vars, '', '&'));
     $response = $r->send()->getBody();
     if (!$response) {
         throw new Am_Exception_Paysystem('Got empty response from API server');
     }
     $xml = simplexml_load_string($response);
     if (!$xml) {
         throw new Am_Exception_Paysystem('Got error from API: response is not xml');
     }
     $this->xml_result = $xml;
     parent::process();
 }
示例#5
0
 public function process()
 {
     $vars = $this->request->getPost();
     if (($sign = $this->plugin->getConfig('signature')) && !isset($vars["WMI_SIGNATURE"])) {
         $this->printAnswer("Retry", "Parameter WMI_SIGNATURE is absent.");
         return;
     }
     if (!isset($vars["WMI_PAYMENT_NO"])) {
         $this->printAnswer("Retry", "Parameter WMI_PAYMENT_NO is absent.");
         return;
     }
     if (!isset($vars["WMI_ORDER_STATE"])) {
         $this->printAnswer("Retry", "Parameter WMI_ORDER_STATE is absent.");
         return;
     }
     $params = array();
     foreach ($vars as $key => $value) {
         if ($key !== "WMI_SIGNATURE") {
             $params[$key] = $value;
         }
     }
     ksort($params, SORT_STRING);
     $values = "";
     foreach ($params as $value) {
         $values .= $value;
     }
     $signature = base64_encode(pack("H*", $sign($values . $this->plugin->getConfig('key'))));
     if ($signature != $vars["WMI_SIGNATURE"]) {
         $this->printAnswer("Retry", "Wrong digital signature " . $vars["WMI_SIGNATURE"]);
         return;
     }
     if (strtoupper($this->request->get("WMI_ORDER_STATE")) != "ACCEPTED") {
         $this->printAnswer("Retry", "Unknown order status " . $vars["WMI_ORDER_STATE"]);
         return;
     }
     parent::process();
     $this->printAnswer("Ok", "Order #" . $this->request->get("WMI_PAYMENT_NO") . " is paid!");
 }
示例#6
0
 public function process()
 {
     if ($this->plugin->getConfig('debugLog')) {
         Am_Di::getInstance()->errorLogTable->log('NetBilling Form [response-ipn]:' . json_encode($this->request->getParams()));
     }
     parent::process();
 }
示例#7
0
文件: bitpay.php 项目: grlf/eyedock
 public function process()
 {
     $rawBody = $this->request->getRawBody();
     if ($this->plugin->getConfig('debugMode')) {
         Am_Di::getInstance()->errorLogTable->log("BitPay-debug [incoming]. REQUEST: {$rawBody}.");
     }
     $vars = json_decode($rawBody, true);
     if (!isset($vars['id'])) {
         throw new Am_Exception_InternalError("BitPay API Error. Request[incoming] has no [id].");
     }
     $req = new Am_Request_Bitpay($this->plugin, Am_HttpRequest::METHOD_GET, $vars['id'], 'checkInvoice');
     $this->res = $req->getResult();
     parent::process();
 }