You shouldn't be posting to checkout.google.com until you've gotten the sandbox 
to work.

http://code.google.com/apis/checkout/developer/index.html#urls_for_posting
The urls apparently have not changed from what is in the repository.
https://sandbox.google.com/checkout/api/checkout/v2/checkout/Merchant/Make sure 
you're using the correct merchant key.  You will have a different merchant key 
for sandbox and for production.


----- Original Message ----
From: Vince M. Clark <[EMAIL PROTECTED]>
To: [email protected]
Sent: Thursday, December 6, 2007 3:49:16 PM
Subject: Re: Google Checkout error


I changed the merchant ID to xxxx before posting to the ML. 

OK, I found the URL to use and got a little further. Here is the URL: 
basePostUrl =
 https://checkout.google.com/api/checkout/v2/merchantCheckout/Merchant/ 

Now I get to redirectHeader.ftl and get an error. 
Here is the error in the server log: 
---- exception report
 ---------------------------------------------------------- 
BeanShell execution caused an error 
Exception: bsh.TargetError 
Message: Sourced file: inline evaluation of: `` document =
 org.ofbiz.base.util.UtilXml.readXmlDocument(response, fa . . . '' : Method
 Invocation org.ofbiz.base.util.UtilXml.readXmlDocument 
---- stack trace
 --------------------------------------------------------------- 
Sourced file: inline evaluation of: `` document =
 org.ofbiz.base.util.UtilXml.readXmlDocument(response, fa . . . '' : Method 
Invocation
 org.ofbiz.base.util.UtilXml.readXmlDocument : at Line: 2 : in file: inline
 evaluation of: `` document =
 org.ofbiz.base.util.UtilXml.readXmlDocument(response, fa . . . '' : org .ofbiz 
.base .util .UtilXml
 .readXmlDocument ( response , false ) 
Target exception: org.xml.sax.SAXParseException: The element type
 "link" must be terminated by the matching end-tag "</link>". 

There is much more in the trace if you need it. Here is the beginning
 of what Google Checkout is returning. Maybe there is something missing
 in the response? 

<html><head><title>Error</title><meta http-equiv="Content-Type"
 content="text/html; charset=utf-8"><link
 href="https://checkout.google.com/files/payments.css"; rel="stylesheet"
 type="text/css"><link rel="stylesheet" type="text/css"
 href="https://checkout.google.com/rsrc/-1/branding.css";><script
 type="text/javascript"
 src="https://checkout.google.com/files/digital/urchin.js";></script><script 
type="text/javascript"> _uacct='UA-18020-1';
 _uccn="promo"; _utcp="/"; urchinTracker(); </script></head><body><div
 id="header"><table cellpadding="0" cellspacing="0"><tr><td
 style="width:95em;"><table cellpadding="0" cellspacing="0" id="head"
 style="width:100%;"><tr><td><div class="header-wrapper"><div id="logo"><div 
class="wrapper"><a
 href="https://checkout.google.com/";><img class="logo" border="0"
 src="https://checkout.google.com/img/googleSMBLogo.gif";
 alt="Logo"></a></div></div><div id="nav"><div class="wrapper"></div></div><div
 id="breadcrumb"><div id="search"><form
 action="https://services.google.com/marketing/checkout_redirect";
 method="GET"><input tabindex="1" type="text" name="q" size="28"><input 
type="submit"
 style="width:auto;overflow:visible;padding:0 .60em 0 .60em"
 value="Search Google Checkout stores"><span style="white-space: nowrap"><a
 href="http://www.google.com/checkout/m.html";>Browse stores
 &raquo;</a></span><input type="hidden" name="lmode" value="online"><input 
type="hidden"
 name="checkout" value="1"><input type="hidden" name="hl"
 value="en_US"></form></div><div class="wrapper-top"><span
 class="breadcrumbs">&nbsp;</span></div><div class="wrapper-bottom"><span
 class="breadcrumbs">&nbsp;</span></div></div><div id="gc-logo"><div 
class="wrapper"><img
 src="https://checkout.google.com/img/googleSMBCobrandLogo.gif"; height="25"
 width="156" alt="Google Checkout"></div></div></div><div id="userLinks"
 align="right"><script type="text/javascript"> function openHelp() { var
 win = window.open("http://checkout.google.com/support?hl\u003den_US";,
 "checkoutHelp", "width=675,height=550,location=no,menubar=no," +
 "resizable=yes,status=no,scrollbar=no"); win.focus(); } </script><a
 href="http://checkout.google.com/support?hl=en_US"; onclick="openHelp();
 return false;"
 
target="checkoutHelp">Help</a></div></td></tr></table></td></tr></table></div><table
 border="0" cellspacing="0" cellpadding="2"
 width="100%"><tr valign="top"><td width="165">&nbsp;</td><td><table
 width="80%"><tr><td><font size="+1"><em>Oops!</em></font></td></tr><tr><td>We
 were unable to process your
 
request.</td></tr></table><br></td></tr></table><br><br><br><br><br><center><div
 style="padding:2px; width:100%;
 max-width:1024px;"><hr style="display:none" size="1" noshade><font
 size="-2">&copy;2007 Google&nbsp;&nbsp;&nbsp;<a
 href="https://checkout.google.com/termsOfService?type=Buyer";
 target="_blank">Terms&nbsp;of&nbsp;Use</a>-<a
 href="https://checkout.google.com/files/privacy.html";
 target="_blank">Privacy&nbsp;Policy</a>-<a href="http://www.google.com/";
 target="_blank">Google&nbsp;Home</a><br><div 
style="color:#676767;display:none;"
 id="fsaFooterText">Google Payment. 

----- Original Message ----- 
From: "Chris Howe" <[EMAIL PROTECTED]> 
To: [email protected] 
Sent: Thursday, December 6, 2007 12:26:40 PM (GMT-0700) America/Denver 
Subject: Re: Google Checkout error 

You'll need to change where it sends the request to in the config
 files. I made the contribution, but unfortunately I don't have the time to
 actively maintain it at the moment. It was written back in January and
 Google Checkout has since updated quite a bit of stuff on their end. 

Quick note...did you add the xxxx in the href or did you not add your
 configuration information in the config files?? 

----- Original Message ---- 
From: Vince M. Clark <[EMAIL PROTECTED]> 
To: user <[email protected]> 
Sent: Thursday, December 6, 2007 12:00:13 PM 
Subject: Google Checkout error 


Probably something I haven't configured correctly. Here is the 
scenario: 
Followed setup instructions here: 
http://docs.ofbiz.org/display/OFBIZ/Google+Checkout+Integration 
When I click on the Google Checkout button on my shopping cart it takes
 
a few seconds, then I get a generic OfBiz error: 

Error calling event: org.ofbiz.webapp.event.EventHandlerException: 
Problems processing event: org.ofbiz.base.util.GeneralRuntimeException:
 
Unknown request; this request does not exist or cannot be called
 directly. 
(Unknown request; this request does not exist or cannot be called 
directly.) 

In the log file I see that the server connected to Google and got the 
following response: 
<HTML><HEAD><TITLE>Moved Temporarily</TITLE></HEAD><BODY 
BGCOLOR="#FFFFFF" TEXT="#000000"><H1>Moved Temporarily</H1>The document
 has moved <A 
HREF="https://checkout.google.com/checkout/cws/v2/Merchant/xxxxxxxxxxxxx/request?gsessionid=xxxxxxxxxx";>here</A>.</BODY></HTML>
 








Reply via email to