Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Page 1 of 2
How do I fix 404 for “googlecheckout/api” url? 
 
DougSystems
Jr. Member
 
Total Posts:  5
Joined:  2008-11-13
 

I’ve been working on this now for the past 3hrs so I’m getting desperate.

I have a shop at: https://www.example.com/shop/

I’m trying to get the Google Checkout API callback URL working but having no luck.  Please can someone help?

The URL should be at: https://www.example.com/shop/googlecheckout/api

Important:
* I use mod_php
* I’ve set “always_populate_raw_post_data = On” in my php.ini
* SSL is working (though the certificate is, for now, self signed)
* Google Checkout API is enabled as a payment method and I can in fact purchase using it but without callback.
* I’m using secure URLs (https) on both the frontend and backend.
* I use mod_rewrite so don’t need to use index.php (though I’ve tried it with and without).

Setup:

* Apache 2.2.3
* PHP 5.2.0

Other info:
I’ve found 2 other people with the same problem here but without a solution: http://www.magentocommerce.com/boards/viewthread/19132/

 
Magento Community Magento Community
Magento Community
Magento Community
 
mrtech
Sr. Member
 
Total Posts:  87
Joined:  2008-06-30
 

what’s the post back URL that you put into the google account?
what hapends when you type in that URL direct into the browser?

 
Magento Community Magento Community
Magento Community
Magento Community
 
mrtech
Sr. Member
 
Total Posts:  87
Joined:  2008-06-30
 

are you still in test mode?
or live mode?

also please be advice when ever I troubleshoot things in magento I disabled all the caching

 
Magento Community Magento Community
Magento Community
Magento Community
 
DougSystems
Jr. Member
 
Total Posts:  5
Joined:  2008-11-13
 

I’m using the standard URL: https://www.example.com/shop/googlecheckout/api

When I put it in the address bar it doesn’t work,

I have just found that this URL gives me a blank page though: https://www.example.com/shop/googlecheckout/api/beacon

Which is different though I’m not sure what it means?

 
Magento Community Magento Community
Magento Community
Magento Community
 
mrtech
Sr. Member
 
Total Posts:  87
Joined:  2008-06-30
 

try to add a “/” at the end of the url it shuold be like this api/

blank page is good if you are not getting 404 its good

 
Magento Community Magento Community
Magento Community
Magento Community
 
DougSystems
Jr. Member
 
Total Posts:  5
Joined:  2008-11-13
 

No luck adding a slash.

These two URLs work fine:
https://www.example.com/shop/googlecheckout/redirect/cart/
https://www.example.com/shop/googlecheckout/beacon/

Its almost as if the API part of the system works but it can’t get to the root callback URL for some reason.

 
Magento Community Magento Community
Magento Community
Magento Community
 
DougSystems
Jr. Member
 
Total Posts:  5
Joined:  2008-11-13
 

*bump*

Can anyone help?  I’m at the end of my tether. :(

 
Magento Community Magento Community
Magento Community
Magento Community
 
bzsaw
Sr. Member
 
Avatar
Total Posts:  141
Joined:  2008-02-13
 

Did any of you get this to work? I’m having the same problem.

Thanks,

 
Magento Community Magento Community
Magento Community
Magento Community
 
bzsaw
Sr. Member
 
Avatar
Total Posts:  141
Joined:  2008-02-13
 

I’ve done all of this to a T. always_populate_raw_post_data is set to on and Google still has a 404 error when trying to access this. I have a feeling there’s a flaw in the system causing the error.

Does anyone have this working properly?

http://www.magentocommerce.com/wiki/using_google_checkout_with_magento

If you wish to deploy Google Checkout on your store, please be aware of these limitations

Your website must be serving pages on standard ports (80 and/or 443)

If you have PHP CGI setup, you will need to have mod_rewrite enabled. Google-Checkout uses HTTP authorization for callbacks. CGI processes do not receive headers from Apache, so a hack in .htaccess utilizing mod_rewrite was implemented to pass the authorization as an environment variable.

If you enable Carrier Calculated shipping rates, your packages will be limited to 150lb total. USPS further limits this to 70lb.

You must have a SSL certificate and a secure base path set (so that you can access your site pages with https:)

Google checkout requires HTTP basic authentication. If you get a 404 error when you to to https://yourserver.com/base_path/index.php/googlecheckout/api this means your server does not support this. Contact your host to see if they can change this for you. Or make sure always_populate_raw_post_data = On in your php.ini file.

You have to have SSL and use secure pages for front end and admin set to yes!

BTW I’m using Magento ver. 1.2.1

Thank you for any help you can offer.

Best,

 
Magento Community Magento Community
Magento Community
Magento Community
 
purplemine
Sr. Member
 
Total Posts:  143
Joined:  2008-05-20
London
 

I’ve just discovered this error, but it was working before.  I have recently updated to 1.2.1 but not sure if this is what has caused it.  How can I check the server config to make sure that the HTTP auth is OK.

 
Magento Community Magento Community
Magento Community
Magento Community
 
bzsaw
Sr. Member
 
Avatar
Total Posts:  141
Joined:  2008-02-13
 

I have a feeling it’s a bug in 1.2.1…

I reported it in the bugs report area…

If anyone know something different it would be awesome to hear from you.

Best,

 
Magento Community Magento Community
Magento Community
Magento Community
 
PleasureWithClass.com
Jr. Member
 
Total Posts:  2
Joined:  2009-02-11
 

I am also experiencing this issue however, not from an update but a fresh install. I don’t any other technical information to add, seems like you guys have covered it all. I will try to follow up on the bug reported.

 
Magento Community Magento Community
Magento Community
Magento Community
 
purplemine
Sr. Member
 
Total Posts:  143
Joined:  2008-05-20
London
 

Do you know the issue number?

 
Magento Community Magento Community
Magento Community
Magento Community
 
purplemine
Sr. Member
 
Total Posts:  143
Joined:  2008-05-20
London
 

I posted a bug report for this issue, and it was promptly closed as they couldn’t reproduce the issue.  I’m starting to wonder if it’s a server config issue as it doesn’t seem to happen to everyone, and I have just set up a new store on the same server which has exactly the same behaviour.  Does anyone have this working who could share server configs?

 
Magento Community Magento Community
Magento Community
Magento Community
 
reefnut
Member
 
Total Posts:  72
Joined:  2008-07-05
 

I also have same problem but am hosted with simple helix to which whom are supposed to be dedicated to magento hosting. Let me add if you think 3 hours is a long time try atleast a month with no solution. The only thing i have found is that if i goto google checkout then click on tools then integration console i see this error message:

We encountered an error trying to access your server at https://www.hotpricedgiftshop.com/googlecheckout/api/—the error we got is sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

I don’t know if this is the issue or not

Though some say it sounds like an ssl issue. Got me

 
Magento Community Magento Community
Magento Community
Magento Community
 
purplemine
Sr. Member
 
Total Posts:  143
Joined:  2008-05-20
London
 

Well I definitely haven’t got any SSL issues as far as I know.  I am on a dedicated server and the SSL is working fine.

Have you spoken to Simple Helix, did they offer any suggestions?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top
Page 1 of 2