/** * Submit a server-to-server request. * Creates a GoogleRequest object (defined in googlerequest.php) and sends * it to the Google Checkout server. * * more info: * {@link http://code.google.com/apis/checkout/developer/index.html#alternate_technique} * * @return array with the returned http status code (200 if OK) in index 0 * and the redirect url returned by the server in index 1 */ function CheckoutServer2Server($proxy = array(), $certPath = '') { require_once dirname(__FILE__) . '/googlerequest.php'; $GRequest = new Espresso_GoogleRequest($this->merchant_id, $this->merchant_key, $this->server_url == "https://checkout.google.com/" ? "Production" : "sandbox", $this->currency); $GRequest->SetProxy($proxy); $GRequest->SetCertificatePath($certPath); return $GRequest->SendServer2ServerCart($this->GetXML()); }