Forums / Addon Payment Modules / Google Checkout module for ZC 1.3.x (beta)

Google Checkout module for ZC 1.3.x (beta)

Locked

Started by jacob13moon on 26 Sep 2006, 8:09 PM · Views: 1,101,449

Results 3,821 to 3,840 of 3,921
This thread is locked. New replies are disabled.
9 Mar 2012, 12:05 AM
#3821
mattclements avatar

mattclements

New Zenner

Join Date:
Aug 2009
Location:
Milton Keynes
Posts:
102
Plugin Contributions:
0

Google Checkout module for ZC 1.3.x (beta)

delia:

I swore I would never install google checkout and someone talked me into it. Aaacccckkkkk!

shipping options are free shipping if over $250
international USPS international mail
US flat rate per item

There seems to be no way to do this.

Google expects to see all three - so I removed the shipping options. so now it expects to see a USPS rate when it's a US shipment. Getting reports that international shippers aren't able to get to checkout but that's not confirmed.

If I'm incorrect in what I've learned, someone please tell me!
Hi Delia,
Could you possibly explain this a little further, so I can work out what is happening, what amendments have you made to the Mod files (and are you using both ZenCart v1.5.0 and Google Checkout for ZenCart v1.5.0?)

If you could let me know, that would be great and I can assist further.

Regards,
Matt

Matt Clements
Freelance Web Developer & Designer | Wholesale Party Supplies | Party Supplies
Please note that the forum is free, but PMs and emails are treated as quote requests.

9 Mar 2012, 12:06 AM
#3822
mattclements avatar

mattclements

New Zenner

Join Date:
Aug 2009
Location:
Milton Keynes
Posts:
102
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

countrycharm:

Hi was this included yet? I have the latest version.

uncharted:

Hi,

Id like to know the above as well please.

Thanks

Not yet i'm afraid guys, my plan was to get this out as the next release, but I had to get a version out compatible with ZenCart v1.5.0.

I will keep you both posted on this, drop me a quick email to [email protected] and I will drop you an email when I have a pre-release version ready if you would like to trial for me....

Matt Clements
Freelance Web Developer & Designer | Wholesale Party Supplies | Party Supplies
Please note that the forum is free, but PMs and emails are treated as quote requests.

9 Mar 2012, 12:16 AM
#3823
webkat avatar

webkat

Zen Follower

Join Date:
Jan 2012
Location:
New England
Posts:
238
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

mattclements:

This sounds like the files were not uploaded correctly, did you upload the orders.php from files_for_v1.5/admin to your admin folder, and all the correct files to the correct folders (making sure you change the work "admin" to your renamed admin folder?

Yes, I believe so. I have uninstalled it for now but maybe tomorrow I will try installing it again (after backing up both database and ftp files, of course--it was really hard to uninstall!!)

9 Mar 2012, 7:10 AM
#3824
mattclements avatar

mattclements

New Zenner

Join Date:
Aug 2009
Location:
Milton Keynes
Posts:
102
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

WebKat:

Yes, I believe so. I have uninstalled it for now but maybe tomorrow I will try installing it again (after backing up both database and ftp files, of course--it was really hard to uninstall!!)

Ahh ok - Uninstalling is easy if everything is working correctly. Pressing remove will remove the database items required, and then it is just a case of rolling back the files.

Would it be easier if I provided a test hosting space that you can upload a copy of all files to, followed by restoring the database and then we can test this together and check; or alternatively I can install on your server on your behalf (taking a backup of all files/DB first)

Matt Clements
Freelance Web Developer & Designer | Wholesale Party Supplies | Party Supplies
Please note that the forum is free, but PMs and emails are treated as quote requests.

9 Mar 2012, 12:00 PM
#3825
discoverytdi avatar

discoverytdi

Totally Zenned

Join Date:
May 2011
Location:
Sunny Rossendale (not)
Posts:
562
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

Hi I keep getting this error message the sale goes through but is not showing in zencart
We encountered an error trying to access your server at https://www.rvsolarsystems.co.uk/googlecheckout/responsehandler.php -- the error we got is Send failed with code: 401. Response body was: Failed to Get Basic Authentication Headers
cheers peter

What ever your doing remember to KISS ( Keep It Simple Stupid )

9 Mar 2012, 11:14 PM
#3826
mattclements avatar

mattclements

New Zenner

Join Date:
Aug 2009
Location:
Milton Keynes
Posts:
102
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

willieWontGo:

I would like to switch the order of shipping methods in the drop down list (on the Google Checkout page).

It happens in both sandbox and live environment.

UPS is first, USPS second. I would like them switched - anyone know how?

Willie,
I have just spent some time working on this, and have updated the module to pull through the Sort Orders from Modules > Shipping.

I have released this as v1.5.1, which has been submitted to the contributions, but can be downloaded from here:
https://github.com/mattclements/Google-Checkout-for-Zencart/zipball/v1.5.1

The only changed file is /googlecheckout/gcheckout.php so if you have v1.5.0 of the module already installed you can just override this file.

Regards,
Matt

Matt Clements
Freelance Web Developer & Designer | Wholesale Party Supplies | Party Supplies
Please note that the forum is free, but PMs and emails are treated as quote requests.

9 Mar 2012, 11:24 PM
#3827
mattclements avatar

mattclements

New Zenner

Join Date:
Aug 2009
Location:
Milton Keynes
Posts:
102
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

discoverytdi:

Hi I keep getting this error message the sale goes through but is not showing in zencart
We encountered an error trying to access your server at https://www.rvsolarsystems.co.uk/googlecheckout/responsehandler.php -- the error we got is Send failed with code: 401. Response body was: Failed to Get Basic Authentication Headers
cheers peter

Sounds like the username/password has been entered incorrectly, if you go to: https://www.rvsolarsystems.co.uk/googlecheckout/responsehandler.php can you login with your API Key/API Secret (you should receive the message "Invalid or not supported Message" once logged in). If not then this is your problem.

When enabling htaccess basic authentication within the Module Configuration, click the link to generate the htaccess file and htpasswd file, and create these correctly (not including the <<<Start--- or ---End>>>

Alternatively email me/PM me [email protected] with the contents of your htaccess & htpasswd file, and your API Key/API Secret and I will check this for you.

Matt Clements
Freelance Web Developer & Designer | Wholesale Party Supplies | Party Supplies
Please note that the forum is free, but PMs and emails are treated as quote requests.

10 Mar 2012, 12:13 AM
#3828
discoverytdi avatar

discoverytdi

Totally Zenned

Join Date:
May 2011
Location:
Sunny Rossendale (not)
Posts:
562
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

mattclements:

Sounds like the username/password has been entered incorrectly, if you go to: https://www.rvsolarsystems.co.uk/googlecheckout/responsehandler.php can you login with your API Key/API Secret (you should receive the message "Invalid or not supported Message" once logged in). If not then this is your problem.

When enabling htaccess basic authentication within the Module Configuration, click the link to generate the htaccess file and htpasswd file, and create these correctly (not including the <<<Start--- or ---End>>>

Alternatively email me/PM me [email protected] with the contents of your htaccess & htpasswd file, and your API Key/API Secret and I will check this for you.
no i can't login with my id and key????
pm sent cheers

What ever your doing remember to KISS ( Keep It Simple Stupid )

10 Mar 2012, 3:25 AM
#3829
webkat avatar

webkat

Zen Follower

Join Date:
Jan 2012
Location:
New England
Posts:
238
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

Ok I reinstalled it today and it works... mostly. I mean it processes the order, and it shows up in my Google orders... but it never shows up in ZC admin area. Is it supposed to? What do I need to do to make it show up with all of my other orders?

Site isn't actually live yet, but it's fully functional: http://opalessenceshop.com

Oh, and it doesn't give any shipping options--it just defaults to USPS First Class mail (the cheapest of the options) and that's that. I'm using USPS mod for shipping.

10 Mar 2012, 7:51 AM
#3830
mattclements avatar

mattclements

New Zenner

Join Date:
Aug 2009
Location:
Milton Keynes
Posts:
102
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

discoverytdi:

no i can't login with my id and key????
pm sent cheers

Cheers, I have just looked and tested - I can login correctly using your API Key, but get a Internal Server Error (500) meaning PHP has thrown an error!

Add:

error_reporting(E_ALL);
ini_set('display_errors', '1');

to the top of the responsehandler.php file so I can have a look at the actual PHP error you are having.

Regards,
Matt

Matt Clements
Freelance Web Developer & Designer | Wholesale Party Supplies | Party Supplies
Please note that the forum is free, but PMs and emails are treated as quote requests.

10 Mar 2012, 7:54 AM
#3831
mattclements avatar

mattclements

New Zenner

Join Date:
Aug 2009
Location:
Milton Keynes
Posts:
102
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

WebKat:

Ok I reinstalled it today and it works... mostly. I mean it processes the order, and it shows up in my Google orders... but it never shows up in ZC admin area. Is it supposed to? What do I need to do to make it show up with all of my other orders?

Site isn't actually live yet, but it's fully functional: http://opalessenceshop.com

Oh, and it doesn't give any shipping options--it just defaults to USPS First Class mail (the cheapest of the options) and that's that. I'm using USPS mod for shipping.

Both of these issues point to an error accessing/processing within the responsehandler.php file from Google. If you login to Google Checkout:

Live:
https://checkout.google.com/sell/

Sandbox:
https://sandbox.google.com/checkout/sell/

Login, Go to Tools, Integration Console.

Do you see any errors here? If so post back with the details and I will take a look

Matt Clements
Freelance Web Developer & Designer | Wholesale Party Supplies | Party Supplies
Please note that the forum is free, but PMs and emails are treated as quote requests.

10 Mar 2012, 10:23 AM
#3832
discoverytdi avatar

discoverytdi

Totally Zenned

Join Date:
May 2011
Location:
Sunny Rossendale (not)
Posts:
562
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

mattclements:

Cheers, I have just looked and tested - I can login correctly using your API Key, but get a Internal Server Error (500) meaning PHP has thrown an error!

Add:

error_reporting(E_ALL);
ini_set('display_errors', '1');

> to the top of the responsehandler.php file so I can have a look at the actual PHP error you are having.
> 
> Regards,
> Matt

HI Matt Heres what i got 
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

What ever your doing remember to KISS ( Keep It Simple Stupid )

10 Mar 2012, 3:14 PM
#3833
webkat avatar

webkat

Zen Follower

Join Date:
Jan 2012
Location:
New England
Posts:
238
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

mattclements:

Both of these issues point to an error accessing/processing within the responsehandler.php file from Google. If you login to Google Checkout:

Live:
https://checkout.google.com/sell/

Sandbox:
https://sandbox.google.com/checkout/sell/

Login, Go to Tools, Integration Console.

Do you see any errors here? If so post back with the details and I will take a look

Yes! Mind you I looked there yesterday based on your answers to other people and these errors weren't there! There are a bunch of errors exactly like this one:

Mar 9, 2012 10:47:15 PM EST Error 634342963735998 We encountered an error trying to access your server at https://opalessenceshop.com/googlecheckout/responsehandler.php -- the error we got is Send failed with code: 400. Response body was: Invalid or not supported Message

10 Mar 2012, 3:27 PM
#3834
webkat avatar

webkat

Zen Follower

Join Date:
Jan 2012
Location:
New England
Posts:
238
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

I have another question. I'm trying to style my Login page and I want the Google Checkout button centered in the fieldset it's in... but this code:

<?php
  // ** GOOGLE CHECKOUT **
    include(DIR_WS_MODULES . 'show_google_components.php');  
  // ** END GOOGLE CHECKOUT **
 ?>

Returns this HTML code:

<div align="right">
  <div style="width: 180px; text-align: center;"><b></b></div></div>
<div align="right">
    <div style="width: 180px"><div align=center><form method="POST" action="https://checkout.google.com/api/checkout/v2/checkout/Merchant/[value removed]" onsubmit="setUrchinInputCode();">
                <input type="hidden" name="cart" value="[buncha encoded stuff removed here]">
                <input type="hidden" name="signature" value="[value removed]"> 
                <input type="image" name="Checkout" alt="Checkout" 
                src="https://checkout.google.com/buttons/checkout.gif?merchant_id=[value removed]&style=trans&variant=text&loc=en_US" 
                height="46" width="180" /><input type="hidden" name="analyticsdata" value=""></form></div><!-- Start Google analytics -->
            <script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript">
            </script>
            <script type="text/javascript">
            _uacct = "[value removed]";
            urchinTracker();
            </script>
            <script src="https://checkout.google.com/files/digital/urchin_post.js" type="text/javascript"></script>  
            <!-- End Google analytics --><div align="center"><a href="javascript:void(window.open('http://checkout.google.com/seller/what_is_google_checkout.html','whatischeckout','scrollbars=0,resizable=1,directories=0,height=250,width=400'));" onmouseover="return window.status = 'What is Google Checkout?'" onmouseout="return window.status = ''"><font size="-2">What is Google Checkout?</font></a></div></div>    </div>
<!-- ** END GOOGLE CHECKOUT ** -->

Which as you can see contains not one but TWO <div align="right"> tags... which I want to be <div align="center">... is there any way to change those, or are they Google-end things, or what? I mean I can live with it being right-aligned, it's just that the symmetry would be better if it were centered; see here: https://opalessenceshop.com/index.php?main_page=login&zenid=sqndpp92tgoorfp0cnt77fs743 (that should take you to the page with new customer registration/returning customer login/checkout with paypal/checkout with google; if it takes you to the page that has the form to fill out to register, try putting something in your cart and then clicking "Log In" from the top nav bar.) The PayPal button is centered, so having the Google button centered would just match well... though I don't want the Google button to be centered elsewhere on the site, so I was hoping I could edit just this instance... possible or no?

10 Mar 2012, 4:04 PM
#3835
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Google Checkout module for ZC 1.3.x (beta)

<div align="center">
``` Is NOT valid CSS.. Suggest Googling "centering content CSS" to get the correct way to do this.. You will need to create the classes/IDs in your stylesheet for centering your content.. 

then take a look at the **show_google_components.php** file (the one being called by the code you quoted) and add the appropriate div containers where you want to apply your classes/IDs.

> **WebKat:**
>
> I have another question. I'm trying to style my Login page and I want the Google Checkout button centered in the fieldset it's in... but this code:
> 
> ```php
<?php
  // ** GOOGLE CHECKOUT **
    include(DIR_WS_MODULES . 'show_google_components.php');  
  // ** END GOOGLE CHECKOUT **
 ?>
```Returns this HTML code:
> 
> ```html
<div align="right">
  <div style="width: 180px; text-align: center;"><b></b></div></div>
<div align="right">
    <div style="width: 180px"><div align=center><form method="POST" action="https://checkout.google.com/api/checkout/v2/checkout/Merchant/[value removed]" onsubmit="setUrchinInputCode();">
                <input type="hidden" name="cart" value="[buncha encoded stuff removed here]">
                <input type="hidden" name="signature" value="[value removed]"> 
                <input type="image" name="Checkout" alt="Checkout" 
                src="https://checkout.google.com/buttons/checkout.gif?merchant_id=[value removed]&style=trans&variant=text&loc=en_US" 
                height="46" width="180" /><input type="hidden" name="analyticsdata" value=""></form></div><!-- Start Google analytics -->
            <script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript">
            </script>
            <script type="text/javascript">
            _uacct = "[value removed]";
            urchinTracker();
            </script>
            <script src="https://checkout.google.com/files/digital/urchin_post.js" type="text/javascript"></script>  
            <!-- End Google analytics --><div align="center"><a href="javascript:void(window.open('http://checkout.google.com/seller/what_is_google_checkout.html','whatischeckout','scrollbars=0,resizable=1,directories=0,height=250,width=400'));" onmouseover="return window.status = 'What is Google Checkout?'" onmouseout="return window.status = ''"><font size="-2">What is Google Checkout?</font></a></div></div>    </div>
<!-- ** END GOOGLE CHECKOUT ** -->
```Which as you can see contains not one but TWO <div align="right"> tags... which I want to be <div align="center">... is there any way to change those, or are they Google-end things, or what? I mean I can live with it being right-aligned, it's just that the symmetry would be better if it were centered; see here: <https://opalessenceshop.com/index.php?main_page=login&zenid=sqndpp92tgoorfp0cnt77fs743> (that should take you to the page with new customer registration/returning customer login/checkout with paypal/checkout with google; if it takes you to the page that has the form to fill out to register, try putting something in your cart and then clicking "Log In" from the top nav bar.) The PayPal button is centered, so having the Google button centered would just match well... though I don't want the Google button to be centered elsewhere on the site, so I was hoping I could edit just this instance... possible or no?

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

10 Mar 2012, 9:20 PM
#3836
mattclements avatar

mattclements

New Zenner

Join Date:
Aug 2009
Location:
Milton Keynes
Posts:
102
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

WebKat:

Yes! Mind you I looked there yesterday based on your answers to other people and these errors weren't there! There are a bunch of errors exactly like this one:

Mar 9, 2012 10:47:15 PM EST Error 634342963735998 We encountered an error trying to access your server at https://opalessenceshop.com/googlecheckout/responsehandler.php -- the error we got is Send failed with code: 400. Response body was: Invalid or not supported Message

That sounds like a mis-configuration in Google Checkout.

Go to: https://checkout.google.com/sell/ (for Live Sites), login and go to Settings, Integration.

Check that Callback contents is set to "Notification as XML", as this will feedback your response in the correct format for the module.

Regards,
Matt

Matt Clements
Freelance Web Developer & Designer | Wholesale Party Supplies | Party Supplies
Please note that the forum is free, but PMs and emails are treated as quote requests.

10 Mar 2012, 9:21 PM
#3837
mattclements avatar

mattclements

New Zenner

Join Date:
Aug 2009
Location:
Milton Keynes
Posts:
102
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

+1 for this! I am going to be updating the module as soon as possible to use 100% correct HTML/CSS (i.e. use style="" rather than various align="")

DivaVocals:

<div align="center"> ``` Is NOT valid CSS.. Suggest Googling "centering content CSS" to get the correct way to do this.. You will need to create the classes/IDs in your stylesheet for centering your content.. > > then take a look at the **show_google_components.php** file (the one being called by the code you quoted) and add the appropriate div containers where you want to apply your classes/IDs.

Matt Clements
Freelance Web Developer & Designer | Wholesale Party Supplies | Party Supplies
Please note that the forum is free, but PMs and emails are treated as quote requests.

10 Mar 2012, 9:23 PM
#3838
mattclements avatar

mattclements

New Zenner

Join Date:
Aug 2009
Location:
Milton Keynes
Posts:
102
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

discoverytdi:

HI Matt Heres what i got
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Thats still the 500 error, so the added code to display the errors is not being actioned correctly.

Do you have access to your error_logs which would hold a log of all PHP errors for the site?

Failing that, feel free to drop over the FTP details to [email protected] and I can diagnose further for you (or via PM)

Matt Clements
Freelance Web Developer & Designer | Wholesale Party Supplies | Party Supplies
Please note that the forum is free, but PMs and emails are treated as quote requests.

11 Mar 2012, 12:16 AM
#3839
discoverytdi avatar

discoverytdi

Totally Zenned

Join Date:
May 2011
Location:
Sunny Rossendale (not)
Posts:
562
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

mattclements:

Thats still the 500 error, so the added code to display the errors is not being actioned correctly.

Do you have access to your error_logs which would hold a log of all PHP errors for the site?

Failing that, feel free to drop over the FTP details to [email protected] and I can diagnose further for you (or via PM)

pm sent I've also sent a donation in thanks for your help for your help

What ever your doing remember to KISS ( Keep It Simple Stupid )

11 Mar 2012, 6:56 AM
#3840
mattclements avatar

mattclements

New Zenner

Join Date:
Aug 2009
Location:
Milton Keynes
Posts:
102
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

discoverytdi:

pm sent I've also sent a donation in thanks for your help for your help

Thank you so much for the donation, donations help me to cover my costs developing this module!

I have fixed the issue for you now, this was actually due to your host blocking folders that were chmod'ed to 777 (world writable), probably due to security which was what your googlecheckout folder was set to (so when I created a test phpinfo.php inside the folder this threw the error too).

Going to the responsehandler.php file previously, and logging in with your API Key & API Secret will display: Invalid of not supported message which is what is expected without an API call being made.

Thanks again!
Regards,
Matt

Matt Clements
Freelance Web Developer & Designer | Wholesale Party Supplies | Party Supplies
Please note that the forum is free, but PMs and emails are treated as quote requests.