I have configured Google Checkout for use with my site and when customers click on Google Checkout, it takes them to the Google Checkout page and everything seems to be working fine, except Google Checkout displays the shipping cost at $0.00 every time. I have Carrier Calculated shipping enabled for Fed-Ex Ground in the Google API section… I went ahead and set a default shipping price to $9.95 so that if Google Checkout encounters an error it will automatically fall back to the default price… Problem is, sometimes that price is too high and sometimes it is too low. I have weights assigned to all of my products and I’m not exceeding the 150 lb limit.
How can I get the Carrier Calculated setting to work correctly?
Yes I am, for me it puts nothing for shipping cost, using carrier calcualted also. Just puts a dropdownlist with 0.00 the only chocie I have UPS Ground only selected. SOmehow the shipping is not getting passed to goolge properly it seems.
Does anyone know where I can find the code for google checkout in Magento.. not the part in the admin menu under Google API… maybe Magento has an error in the code??
/** * Verifies that the authentication sent by Google Checkout matches the * merchant id and key * * @param string $headers the headers from the request */ function HttpAuthentication($headers=null, $die=true) { if(!is_null($headers)) { $_SERVER = $headers; } // moshe's fix for CGI if (empty($_SERVER['HTTP_AUTHORIZATION'])) { foreach ($_SERVER as $k=>$v) { if (substr($k, -18)==='HTTP_AUTHORIZATION' && !empty($v)) { $_SERVER['HTTP_AUTHORIZATION'] = $v; break; } } }
Go to Google checkouts website and login.. Go to: Tools --> Integration Console
Are you getting this error:
We encountered an error trying to access your server at https://secure.yourdomain.com/googlecheckout/api/—the error we got is: Sending failed with HTTP response code: 401. Response body was: Failed to Get Basic Authentication Headers
I had to remove the authentication because I wasn’t able to get it to work with the PHP/CGI limitations.
I’m not using the sandbox so maybe you should try it without. UK shouldn’t be a factor.
No - I keep getting “Your server returned no data in its reply; Checkout requires data of type merchant-calculation-results in reply to merchant-calculation-callback”.
I kind of want to test this with GC in Sandbox first before I purchase SSL for my domain.
What seems to be the problem though - could a team member help us out? Is this a Magento bug, or GC bug, or a specific server configuration problem?
# What do I do when I observe this error: Your server returned no data in its response; Checkout requires data of type merchant-calculation-results in response to merchant-calculation-callback
Check your php version. If it is version 5.2.2, you may have to add the following to /googlecheckout/responsehandler.php.:
Have you managed to get this to work? I just tried GC on your website, and it does not seem to work correctly - the shipping charges do not carry over.
I believe I have it working. Only problem is that it won’t carry over the shipping charge (I’m pretty sure that is a rule required by google, since it is supposed to be a separate “entity"). Google checkout has the carrier calculate the shipping separately, I am not sure as to why it is different from the shipping calculated on my site, but at least it is no longer displaying the default shipping price.
Many thanks for your reply. Yes - I can see that the shipping quote in your Magento cart is not showing in your GC cart - it shows something completely different. Have you set those charges up in GC?
Could you tell me if the only changes you have made are these (from your earlier posts above):
I did everything mentioned but I did not add:
$HTTP_RAW_POST_DATA = isset($HTTP_RAW_POST_DATA) ? $HTTP_RAW_POST_DATA : file_get_contents("php://input");
In Google Checkout, my callback url is:
https://secure.mysiteurl.com/googlecheckout/api
Hmm… Come to think of it… Since you don’t have SSL installed on your site… that could be the problem. As far as I know, API callback URL must be a secure address (I haven’t tried sandbox mode). You can get a 3 month free trial from all the main players in SSL (Comodo, Verisign, GoDaddy, etc...) to test this out.