Hello,
Everything works fine on the sandbox, but when I moved to
the
production server I got this after clicking on the Google
Checkout
button:
An error ocurred:
HTTP Status: ERR:
Error message:
<HTML> <HEAD> <TITLE>Moved
Temporarily</TITLE> </HEAD> <BODY
BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Moved Temporarily</H1> The
document has moved <A
HREF="/m/error?gsessionid=Z54rMtiuLoc">here<
/A>.
</BODY> </HTML>
The problem occurs inside this function (used as-is from the
php test
code provided by Google, googlerequest.php)
function SendServer2ServerCart($xml_cart, $die=true)
It gets to here:
list($status, $body) =
$this->SendReq($this->merchant_checkout,
$this->GetAuthenticationHeaders(),
$xml_cart);
at which point, $this->merchant_checkout is:
https://checkout.google.com/check
out/api/checkout/v2/merchantCheckout/Merchant/[my
valid merchant ID for the production system]
and $this->GetAuthenticationHeaders() contains:
auth headers:array(
"0" => "Authorization: Basic
[BASE64ENCODED_STRING_REMOVED_JUST_IN_CASE=]",
"1" => "Content-Type: application/xml;
charset=UTF-8",
"2" => "Accept: application/xml;
charset=UTF-8",
"3" => "User-Agent: GC-PHP-Sample_code
(v1.2.5/ropu)"
)
After this call I'm getting the "Moved
Temporarily" message noted
above.
I've verified that the merchant id and merchant key are
valid using
the curl -d command listed in the docs.
There are no messages in my integration panel on google
checkout, and
no messages in the logs on my server. I'm just stuck with
this
mysterious redirect message.
Any ideas as to why this is happening would be greatly
appreciated!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "API Integration Basics" group.
To post to this group, send email to
google-checkout-api-integration googlegroups.com
To unsubscribe from this group, send email to
google-checkout-api-integration-unsubscribe googlegroups.com
For more options, visit this group at http://groups.google.com/group/google-checko
ut-api-integration?hl=en
-~----------~----~----~----~------~----~------~--~---
|