are you using PHP over CGI? it seems that there might be some issues related exactly to this way, but I’ve found no good solutions for it.
also it will be a good idea to contact google support, so they will be able to provide detailed reply about this error and things that are causing it, because I was unable to find anywhere detailed explanation of google checkout errors.
When a using HTTP basic PHP will automatically populate $_SERVER[’PHP_AUTH_USER’] and $_SERVER[’PHP_AUTH_PW’] variables with the username and password that were provided. IF and ONLY IF PHP is being run as a server module (like mod_php). If you are running PHP as a CGI then those two variables won’t get created at all, ever, even when using HTTP basic authentication. And since you can’t do anything in WordPress via AtomPub without authenticating you are dead in the water. Well, not exactly.
However, there is a workaround available which can make HTTP Auth for PHP working even when in CGI mode…
Then he goes on to show how to fix the situation but I wasn’t able to translate that into a fix for Magento.
Yes, as far as I know I do have mod_rewrite as I do not need /index.php in my urls.
I have tried adding lines like:
############################################ ## HTTP Basic Authentication for Google Checkout ## ## AuthUserFile ../.htpasswds/public_html/passwords ## AuthName "Google Checkout" ## AuthType Basic ## Require user 469326734638364
(uncommented of course, but have had no success) I haven’t seen any other magento users mention doing anything like that so I doubt that would be the problem.
I have also seen a useful site that has some tools for Google Checkout, one of them being an .htaccess generator described as: .htaccess .htpasswd pair for Google Checkout Basic authentication on CGI php installations - Link to site: http://demo.globant.com/~brovagnati/tools/htaccess.php
It looks promising and I tried using that but I had trouble implementing that into my installation. Due mostly because of a lack of understanding of htaccess and basic authentication.
Yep I had the https url and in the correct field and URLs: admin->System->Configuration->Web->Secure->Use Secure URLs in Frontend, set it to “Yes”. It still posts the http version of the url.
I’ve done most of the above changes to php code and I have an SSL cert and I just can’t seem to get the actual shipping call to work. I’ve even done the mode to change the url manually in Callback.php but I doubt that was my issue.
For Google Checkout I am using Merchant Calculated shipping since I want to use table rates. However, when checking out in sandbox mode It doesn’t use my table rates from the csv file, but the default price instead.
I have read through this thread and tried everything using all of the updated files and I still have the problem. Any help is greatly appreciated. Thanks
Here is the Error I am getting from the Integration Console:
Error: Merchant Calculations: We were looking for data in your merchant-calculation-results, but were not able to find it: result: address-id:544533127820275shipping-name: UPS Standard - 3-5 Business Days.
XML We Received:
<?xml version="1.0" encoding="utf-8"?>
<merchant-calculation-results xmlns="http://checkout.google.com/schema/2">
<results>
<result shipping-name="USPS Priority - 2-3 Business Days” address-id="544533127820275">
<shipping-rate currency="USD">4.9</shipping-rate>
<shippable>true</shippable>
<total-tax currency="USD">0</total-tax>
</result>
<result shipping-name="UPS 3 Day Select - 3 Business Days” address-id="544533127820275">
<shipping-rate currency="USD">8.95</shipping-rate>
<shippable>true</shippable>
<total-tax currency="USD">0</total-tax>
</result>
<result shipping-name="UPS 2nd Day Air - 2 Business Days” address-id="544533127820275">
<shipping-rate currency="USD">12.6</shipping-rate>
<shippable>true</shippable>
<total-tax currency="USD">0</total-tax>
</result>
<result shipping-name="UPS Next Day Air - 1 Business Day” address-id="544533127820275">
<shipping-rate currency="USD">32.65</shipping-rate>
<shippable>true</shippable>
<total-tax currency="USD">0</total-tax>
</result>
</results>
</merchant-calculation-results>
Well, I fixed my problem. It was related to the tablerate.csv files. One of them was formatted incorrectly and it was causing all of the shipping prices to go to the default prices in google checkout.
THough I could never get sandbox mode to work for me, the live mode does work except the shipping… Your reformated file sounds like something to try. Can you please post it?
It won’t let me attach a file for some reason but I here’s how I have my csv’s:
Country Region/State Zip/Postal Code Weight (and above) Shipping Price
USA * * 2 7.82
USA * * 3 8.26
USA * * 4 8.54
I ran into another problem though. When I submit an order, it doesn’t send any information back to my website. I had it working on my first try then I left it thinking everything was ok. I can’t remember changing much since then, but now new orders aren’t showing on dashboard when I test order. There are no errors showing in the integration console either…
I ran into another problem though. When I submit an order, it doesn’t send any information back to my website. I had it working on my first try then I left it thinking everything was ok. I can’t remember changing much since then, but now new orders aren’t showing on dashboard when I test order. There are no errors showing in the integration console either…