public function process() { $this->result = $this->request->getPost(); // print_rr($downloadmd5); // print_rre($this->result); parent::process(); }
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()); } }
public function process() { $this->result = $this->request->getPost(); parent::process(); }
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(); }
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!"); }
public function process() { if ($this->plugin->getConfig('debugLog')) { Am_Di::getInstance()->errorLogTable->log('NetBilling Form [response-ipn]:' . json_encode($this->request->getParams())); } parent::process(); }
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(); }