/** * Redirect the customer to SimplePay's site to enter their payment details */ public function TransferToProvider() { $client = new SIMPLEPAY_CLIENT($this->GetValue('accessid'), $this->GetValue('secretkey'), $this->GetValue('testmode') == "YES"); $simplePay = new SIMPLEPAY_PAY(); $simplePay->setDescription('Order from Shopping Cart'); $simplePay->setReferenceId($this->GetCombinedOrderId()); $simplePay->setAmount('USD ' . round($this->GetGatewayAmount(), 2)); $client->pay($simplePay); die; }
private function _verifySignature() { $client = new SIMPLEPAY_CLIENT( $this->GetValue('accessid'), $this->GetValue('secretkey'), $this->GetValue('testmode') == "YES" ); $urlEndPoint = preg_replace('/\?(.)*$/', '', GetCurrentUrl()); return $client->validateRequest($_GET, $urlEndPoint, 'GET'); }