function __construct(Am_Paysystem_Abstract $plugin, Am_Request $request, Zend_Controller_Response_Http $response, $invokeArgs) { parent::__construct($plugin, $request, $response, $invokeArgs); $str = $request->getRawBody(); $ret = @json_decode($str); if (!$ret) { throw new Am_Exception_InternalError("Coinbase: Can't decode postback: " . $ret); } $this->order = @$ret->order; }
public function __construct(Am_Paysystem_Abstract $plugin, Am_Request $request, Zend_Controller_Response_Http $response, $invokeArgs) { $DR = preg_replace("/\\s/", "+", $request->get('DR', $_GET['DR'])); $rc4 = new Crypt_RC4($plugin->getConfig('secret', 'ebskey')); $QueryString = base64_decode($DR); $rc4->decrypt($QueryString); $QueryString = split('&', $QueryString); foreach ($QueryString as $param) { $param = split('=', $param); $request->setParam($param[0], $param[1]); } parent::__construct($plugin, $request, $request, $invokeArgs); }
public function __construct(Am_Paysystem_Abstract $plugin, Am_Request $request, Zend_Controller_Response_Http $response, $invokeArgs) { parent::__construct($plugin, $request, $response, $invokeArgs); $this->invoice = Am_Di::getInstance()->invoiceTable->findFirstBy(array('public_id' => $request->get('reference_id'))); }
public function __construct(Am_Paysystem_Abstract $plugin, Am_Request $request, Zend_Controller_Response_Http $response, $invokeArgs) { parent::__construct($plugin, $request, $response, $invokeArgs); $this->xml = simplexml_load_string($request->getRawBody()); }
public function __construct(Am_Paysystem_Abstract $plugin, Am_Request $request, Zend_Controller_Response_Http $response, $invokeArgs) { parent::__construct($plugin, $request, $response, $invokeArgs); $this->vars = $this->request->getRequestOnlyParams(); }
public function __construct(Am_Paysystem_Abstract $plugin, Am_Request $request, Zend_Controller_Response_Http $response, $invokeArgs) { $this->msp = $plugin->createMSP(); $this->msp->transaction['id'] = $request->get('transactionid'); parent::__construct($plugin, $request, $response, $invokeArgs); }
function __construct(Am_Paysystem_Abstract $plugin, Am_Request $request, Zend_Controller_Response_Http $response, $invokeArgs) { parent::__construct($plugin, $request, $response, $invokeArgs); $str = $request->getRawBody(); $this->_xml = simplexml_load_string($str); if (!$this->_xml) { throw new Am_Exception_Paysystem_TransactionInvalid('Invalid xml received from 1SC: ' . $str); } $this->_order = $this->apiRequest('Orders', (string) $this->_xml->Token); $this->_client = $this->apiRequest('Clients', (string) $this->_order->OrderInfo->ClientId); }
function __construct(Am_Paysystem_Abstract $plugin, Am_Request $request, Zend_Controller_Response_Http $response, $invokeArgs) { parent::__construct($plugin, $request, $response, $invokeArgs); //SessionStatus. As a reply to the request, the string "SSOK" is expected. //TransactionStatus. As a reply to the request, the string "TSOK" is expected. if ($this->request->get('txid') || $this->request->get('txaction')) { print "TSOK"; } else { print "SSOK"; } }
public function __construct(Am_Paysystem_Abstract $plugin, Am_Request $request, Zend_Controller_Response_Http $response, $invokeArgs) { $this->tracking_params = $request->get("tracking_params"); $this->billing_address = $request->get("billing_address"); $this->subscription = $request->get("subscription"); parent::__construct($plugin, $request, $response, $invokeArgs); }
public function __construct(Am_Paysystem_Abstract $plugin, Am_Request $request, Zend_Controller_Response_Http $response, $invokeArgs) { parent::__construct($plugin, $request, $response, $invokeArgs); // $s = base64_decode(str_replace(" ", "+", $request->get("Crypt",$request->get("crypt")))); // $s = $plugin->sagepay_simple_xor($s, $plugin->getConfig('pass')); $s = Am_Paysystem_SagepayForm::decryptAes($request->get("Crypt", $request->get("crypt")), $plugin->getConfig('pass')); parse_str($s, $this->vars); }
function __construct(Am_Paysystem_Abstract $plugin, Am_Request $request, Zend_Controller_Response_Http $response, $invokeArgs) { parent::__construct($plugin, $request, $response, $invokeArgs); }
function __construct(Am_Paysystem_Abstract $plugin, Am_Request $request, Zend_Controller_Response_Http $response, $invokeArgs) { parent::__construct($plugin, $request, $response, $invokeArgs); require_once dirname(__FILE__) . '/mapi/mapi_package.php'; // $r = HIPAY_MAPI_COMM_XML::analyzeNotificationXML($this->request->getPost('xml'), $operation, $status, $date, // $time, $transid, $amount, $currency, $idformerchant, $merchantdatas, $emailClient, $subscriptionId, $refProduct); $str = $this->request->getPost('xml'); //$request->getRawBody(); $xml = simplexml_load_string($str); //$this->_xml = $xml->mapi; $this->_xml = $xml; //The value of the MD5 is calculated for the information following the tag </md5content> and preceding the tag </mapi>. preg_match("/<\\/md5content>(.*)<\\/mapi>/im", $str, $matches); $this->_hash = md5($matches[1]); if (!$this->_xml) { throw new Am_Exception_Paysystem_TransactionInvalid('Invalid xml received from Hipay: ' . $str); } /* <?xml version="1.0" encoding="UTF-8"?> <mapi> <mapiversion>1.0</mapiversion> <md5content>c0783cc613bf025087b8bf5edecac824</md5content> <result> <operation>capture</operation> <status>ok</status> <date>2010-02-23</date> <time>10:32:12 UTC+0000</time> <transid>4B83AEA905C49</transid> <subscriptionId>753EA685B55651DC40F0C2784D5E1170</subscriptionId> (if the transaction is attached to a subscription) <origAmount>10.20</origAmount> <origCurrency>EUR</origCurrency> <idForMerchant>REF6522</idForMerchant> <emailClient>email_client@hipay.com</emailClient> <merchantDatas> <_aKey_id_client>2000</_aKey_id_client> <_aKey_credit>10</_aKey_credit> </merchantDatas> <refProduct0>REF6522</refProduct0> </result> </mapi> */ }
function __construct(Am_Paysystem_Abstract $plugin, Am_Request $request, Zend_Controller_Response_Http $response, $invokeArgs) { parent::__construct($plugin, $request, $response, $invokeArgs); $str = $request->getRawBody(); $this->_order = json_decode($str, true); }
public function __construct(Am_Paysystem_Abstract $plugin, Am_Request $request, Zend_Controller_Response_Http $response, $invokeArgs) { $this->vercode = split(":", $request->get('vercode')); parent::__construct($plugin, $request, $response, $invokeArgs); }
function __construct(Am_Paysystem_Abstract $plugin, Am_Request $request, Zend_Controller_Response_Http $response, $invokeArgs) { parent::__construct($plugin, $request, $response, $invokeArgs); $this->_params = $this->request->isPost() ? $this->request->getPost() : $this->request->getQuery(); }
function __construct(Am_Paysystem_Abstract $plugin, Am_Request $request, Zend_Controller_Response_Http $response, $invokeArgs) { parent::__construct($plugin, $request, $response, $invokeArgs); $this->c = new Am_Controller($request, $response, $invokeArgs); $PathInfo = $request->getPathInfo(); $this->_case = substr($PathInfo, strrpos($PathInfo, '/') + 1); $this->_params = $this->request->isPost() ? $this->request->getPost() : $this->request->getQuery(); $receipt_id = ''; $invoice = $this->getInvoice(); //Am_Di::getInstance()->invoiceTable->findFirstByPublicId($payment_id); if ($invoice) { $receipt_id = Am_Di::getInstance()->invoicePaymentTable->getLastReceiptId($invoice->invoice_id); } if ($receipt_id) { $this->_params['transaction_id'] = $receipt_id; } }
public function __construct(Am_Paysystem_Abstract $plugin, array $request, Zend_Controller_Response_Http $response, $invokeArgs) { parent::__construct($plugin, new Am_Request($request), $response, $invokeArgs); }