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

Google Checkout module for ZC 1.3.x (beta)

Locked

Views: 1,101,073

Results 1 to 20 of 3,921
This thread is locked. New replies are disabled.
26 Sep 2006, 8:09 PM
#1
jacob13moon avatar

jacob13moon

New Zenner

Join Date:
Sep 2006
Posts:
8
Plugin Contributions:
1

Google Checkout module for ZC 1.3.x (beta)

Hi everyone,

This is Jacob from the Google Checkout team.

I'd like to let you know that we just released Google Checkout module for Zen Cart. This module provides Level 2 implementation of Google Checkout with Zen Cart, enabling you to provide Google Checkout to buyers and process orders through your admin UI.

This project is hosted at http://code.google.com/p/google-checkout-zencart where you can find the latest release at any time.

Thanks,
Jacob

UPDATE:
GOOGLE HAS ABANDONED AND NO LONGER SUPPORTS THEIR GOOGLE CHECKOUT ADDON

UPDATE:
As of July 2012 a community member has picked up where Google left off. Please report any issues/ideas to: https://github.com/mattclements/Google-Checkout-for-Zencart/issues
NEW DISCUSSION ON THE NEWER MODULE can be found at: http://www.zen-cart.com/showthread.php?199125-Google-Checkout

26 Sep 2006, 8:15 PM
#2
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

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

what are the requirements?
lib xml?
php?
dom?

26 Sep 2006, 8:36 PM
#3
jacob13moon avatar

jacob13moon

New Zenner

Join Date:
Sep 2006
Posts:
8
Plugin Contributions:
1

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

Merlinpa1969:

what are the requirements?
lib xml?
php?
dom?

Everyone, you can also download the module from http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_48&products_id=314

It runs on PHP with libcurl installed. However, it does not require DOM or DOMXML (libxml) libraries installed.

Thanks,
Jacob

26 Sep 2006, 8:44 PM
#4
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

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

how about php 5,
I mean the requirements google said required php 4

26 Sep 2006, 9:43 PM
#5
voltage avatar

voltage

Totally Zenned

Join Date:
Apr 2005
Location:
Houston, TX
Posts:
1,356
Plugin Contributions:
1

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

Thank you for providing this. I look forward to implementing it into our sites. I took a look at the download file and although it is clear (somewhat) how to install it, it is not the most user friendly way to present it and is definetly a different way of approaching it.

Please don't get me wrong. I'm not complaining, but am grateful that this is being provided by Google. I'm just stating that if the intent is to encourage as many shops as possible to implement and use google checkout, the presentation of it may scare the more novice/intermediate users away. The majority of shop owners / creators are not your typical programmers.

Anyways, thanks again!
Mike

26 Sep 2006, 9:48 PM
#6
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

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

Thanks for info/module, hopefully Google's UK supporters will soon
get the chance to try out Google Checkout
:smile:

26 Sep 2006, 11:55 PM
#7
willalbro avatar

willalbro

New Zenner

Join Date:
Jan 2006
Posts:
22
Plugin Contributions:
0

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

I tried installing it but the patch script hangs. :-(

27 Sep 2006, 2:25 AM
#8
willalbro avatar

willalbro

New Zenner

Join Date:
Jan 2006
Posts:
22
Plugin Contributions:
0

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

ok....so I figured out to install it w/o hanging. This is the command I used with the patch in the root of the store where admin is a sub directory

patch -p1 </eStore/google-checkout-zencart.patch

With version 1.3.5 I got errors where sections of the file did not merge. It does say that it is for version 1.3.0. - so shame on me...I could go merge the sections that failed manually but I don't really see the profit.

patch is a Linux utility used to patch the Linux kernel among other things. It's pretty nifty as it uses a file comparison utility called diff to compare the files and the patch script tells whether to add, subtract, or overwrite code blocks at specified line numbers. I am grateful to google for releasing this but I really wish it was released in standard format..this really slows me down so I will not plan on integrating it right now until it is easier to install.

27 Sep 2006, 2:27 AM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

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

I'm waiting to hear back from the contributor about their intentions regarding releasing a simpler-to-install version of their code.

27 Sep 2006, 2:29 AM
#10
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

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

Im still wondering if it works with php 5.
the last info I got from google was that it was for php4 only and that libxml was required

27 Sep 2006, 5:38 AM
#11
jacob13moon avatar

jacob13moon

New Zenner

Join Date:
Sep 2006
Posts:
8
Plugin Contributions:
1

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

Merlinpa1969:

Im still wondering if it works with php 5.
the last info I got from google was that it was for php4 only and that libxml was required

Hi,

I just updated the original module so it runs on both PHP4 and PHP5. It does not require libxml since it doesn't use any of the DOM functions for constructing and parsing XML. The only requirement is cURL (libcurl) installed and enabled on your server.

Hope this helps,

Jacob

27 Sep 2006, 5:43 AM
#12
voltage avatar

voltage

Totally Zenned

Join Date:
Apr 2005
Location:
Houston, TX
Posts:
1,356
Plugin Contributions:
1

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

willalbro:

patch is a Linux utility used to patch the Linux kernel among other things. It's pretty nifty as it uses a file comparison utility called diff to compare the files and the patch script tells whether to add, subtract, or overwrite code blocks at specified line numbers. I am grateful to google for releasing this but I really wish it was released in standard format..this really slows me down so I will not plan on integrating it right now until it is easier to install.

Aha! That makes sense. I haven't seen that before. The format did look rather peculiar to me . . .

27 Sep 2006, 5:44 AM
#13
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

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

Kool looks good,
will you make this more user friendly ( zen user )
and for more than just the 1.3.0
4 out of 5 hunks fail in our 1.3.5 demo ( has mods )

27 Sep 2006, 6:27 AM
#14
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

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

Jacob,

I have a few questions about the purpose of some of the code altered in core files.

  1. /admin/modules.php
    I don't see anything that requires this edition of the added makeSqlString() function. You declare this same function in two other places, but this is the only one that is set to return a value enclosed by $single_quote. Again, it seems that this file does not need to be touched, as this sole function is not used from here.

  2. /admin/orders.php
    I don't see anything in your code that uses the $payment_value variable defined:
    $payment_value= MODULE_PAYMENT_GOOGLECHECKOUT_TEXT_TITLE;

  3. two of your added files are duplicated, with ~ appended to the filename. I gather these are simply backups generated by an editor? However, since they are identical to each other, they don't appear to be merely backups. I see no references to ~ elsewhere in your changes, so it appears these files are not used/required.

27 Sep 2006, 10:57 PM
#15
willalbro avatar

willalbro

New Zenner

Join Date:
Jan 2006
Posts:
22
Plugin Contributions:
0

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

Ok...I bitched enough yesterday and I have since decided to get back to being solution minded. I downloaded version 1.3.0 and applied the patch. Following is the command line output. In short one hunk failed and that block of code is a comment and is inconsequential.

patch -p1 </home/will/Test/zen- cart-v1.3.0-full-fileset/google-checkout-zencart.patch
patching file admin/includes/functions/general.php
Hunk #1 FAILED at 17.
1 out of 3 hunks FAILED -- saving rejects to file admin/includes/functions/gener al.php.rej
patching file admin/modules.php
patching file admin/orders.php
patching file googlecheckout/gcheckout.php
patching file googlecheckout/gcheckout.php~
patching file googlecheckout/response_error.log
patching file googlecheckout/response_message.log
patching file googlecheckout/responsehandler.php
patching file googlecheckout/xmlparser.php
patching file googlecheckout/xmlbuilder.php
patching file includes/languages/english/modules/payment/googlecheckout.php
patching file includes/modules/payment/googlecheckout.php
patching file includes/modules/payment/googlecheckout.php~
patching file includes/templates/template_default/templates/tpl_checkout_payment _default.php
patching file includes/templates/template_default/templates/tpl_login_default.ph p
patching file includes/templates/template_default/templates/tpl_shopping_cart_de fault.php

(Following is the general.php.rej hunk that failed, as you can see it's a comment.:)


*** 17,23 ****
// | to obtain it through the world-wide-web, please send a note to |
// | [email protected] so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+

  • // $Id: general.php 4316 2006-08-28 21:27:21Z drbyte $
    //

    ////
    --- 17,23 ----
    // | to obtain it through the world-wide-web, please send a note to |
    // | [email protected] so we can mail you a copy immediately. |
    // +----------------------------------------------------------------------+

  • // $Id: general.php 3415 2006-04-11 04:51:22Z drbyte $
    //

    ////

I am going to now patch this file set into 1.3.5 or upgrade 1.3.0 to 1.3.5...or maybe I will take the files and make them into a Zen Friendly mod that would install the standard way?...any feedback?

Thanks,

Will
https://www.brooksestore.com

28 Sep 2006, 12:03 AM
#16
voltage avatar

voltage

Totally Zenned

Join Date:
Apr 2005
Location:
Houston, TX
Posts:
1,356
Plugin Contributions:
1

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

willalbro:

...or maybe I will take the files and make them into a Zen Friendly mod that would install the standard way?...any feedback?
If you do, please post it here for the masses :D.

28 Sep 2006, 1:05 AM
#17
willalbro avatar

willalbro

New Zenner

Join Date:
Jan 2006
Posts:
22
Plugin Contributions:
0

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

Ok...I made it into a zen friendly mod that can be installed and used right away :-D

I submitted it into the downloads section and it is under review. In the meantime you can find it here:

https://www.brooksestore.com/eStore/Google_Checkout.zip

Use it at your own risk and have fun. BTW it's on my site and functions great.

God Bless!

Will
Brooks eStore
https://www.brooksestore.com

28 Sep 2006, 1:31 AM
#18
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

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

does it integrate with super orders?

28 Sep 2006, 1:47 AM
#19
willalbro avatar

willalbro

New Zenner

Join Date:
Jan 2006
Posts:
22
Plugin Contributions:
0

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

Personally, Im not sure. It is exactly what google coded, except I ran the patch utility on a fresh, non-modded 1.3.0 version and then used a file comparing utility to upgrade google_checkout to a fresh, non-modded version of 1.3.5.

I would guess yes, but I would test it on a non-production store.

Best of luck!

Will
https://www.brooksestore.com

28 Sep 2006, 5:05 AM
#20
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

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

Will,

Thanks for your efforts. They are appreciated.

I took it one step further for you ...

I did the same thing last night, and when I studied the code changes while converting to 1.3.5, I came up with a number of changes to the code in order to make it more Zen-friendly and easier to plug in, etc. Some of the issues encountered are listed earlier in this thread in the form of questions.

Like you, I've packaged it as a set of files which can be uploaded by FTP. The readme explains which files should be modified to suit your own custom template, etc.

Extraneous unused code is also removed from the updated module.

The update is now available as an update to the original contribution:
http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=314