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,099,622

Results 621 to 640 of 3,921
This thread is locked. New replies are disabled.
06 Feb 2007, 16:17
#621
chain_man avatar

chain_man

Zen Follower

Join Date:
Dec 2005
Location:
Box Elder, SD
Posts:
375
Plugin Contributions:
0

Google Checkout module for ZC 1.3.x (beta)

aharper78:

Hello,

I have had trouble with the install of google checkout for 1.3.7 . Every time I install the google checkout mod, it seems to overwrite my paypal EC buttons and displaying the GC button where the paypal EC button goes. Has this been happening to anyone else? I have read the install directions and done everything to the letter. Please let me know if there is a fix to this or if I may have done something wrong.

Thanks in advance.

Re: Paypal Express checkout don't show button


From http://www.zen-cart.com/forum/showth...=47318&page=47 :

I've found that , if you want to use PayPal Express checkout too, you will have to do a bit of merging the GoogleCheckout code into the new versions of the 3 template files found in includes\templates\YOUR_TEMPLATE\templates. All of the 1.3.7 versions of those files have PayPal Express modifications in them. I found it easier to modify tpl_login_default.php and tpl_shopping_cart_default.php from the new versions by adding the GCO code. With the tpl_checkout_payment_default.php it was easier to add the PayPal Express code as it was better documented.

From http://www.zen-cart.com/forum/showth...=47318&page=49 :

It is probably easiest to use winmerge to compare the two files. But I don't have that tool, so did it the hard way.

Essentially, it's probably easiest to start with the new 1.3.7 version as your base code. Search the comparable GCO version for "google". In two of the files, there are only a couple of lines in the GCO version. Copy and paste these lines into the 1.3.7 version. (I'm hedging about which files as I don't have them in front of me.)

In the third file, there is a lot more "google" in the GCO code, and it is well commented. I used this at a base and compared the 1.3.7 version, picking out the PayPal Express sections and copying and pasting them into the CGO version.
I think either way would be about the same.

I placed all merged versions of the template files in the YOUR_TEMPLATE/templates folder, as specified in the Google Checkout mod. This will keep your mods in override mode and keep your 1.3.7 default template code intact.

06 Feb 2007, 16:19
#622
chain_man avatar

chain_man

Zen Follower

Join Date:
Dec 2005
Location:
Box Elder, SD
Posts:
375
Plugin Contributions:
0

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

rosenblum68:

Problem: Orders with Zencart using googlecheckout do not show up in zencart/admin orders list.

PLEASE HELP!
jeff

I'm using:

zen-cart-v1.3.7-full-fileset-12302006
(w/theme "silverfish")
google checkout 1.04r

I have doublechecked GoogleCheckout installation

In "response_error.log" I get:
Tue Feb 6 4:54:35 PST 2007:- Line 119: headers['Authorization'] is NULL.

At GC, Am using callback:
https://www.newenglandparkingcouncil.org/zencart/googlecheckout/responsehandler.php

have tried both XML and HTML settings.

This has been covered a lot in this thread. Review the posts from about page 32 forward.

06 Feb 2007, 19:43
#623
ropu avatar

ropu

Zen Follower

Join Date:
Oct 2006
Location:
argentina
Posts:
243
Plugin Contributions:
0

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

rothkj1022:

I have a zen cart that only sells virtual products (downloadable software). The google checkout payment module still does not appear to support this. The orders go through, but the products_attributes and products_downloads records do not get inserted. I had been inserting these records manually after an order goes through so I could still use Google Checkout on my site, but this has become far too cumbersome to deal with.

Is anyone working on this issue?
hi rothkj1022.

For now GC module does not support soft goods, because GC doesnt. But is in the agenda.

If anyone has any idea on how to make it work or an alternative solution, i can code it.

ropu

06 Feb 2007, 20:39
#624
rosenblum68 avatar

rosenblum68

New Zenner

Join Date:
Feb 2007
Posts:
4
Plugin Contributions:
0

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

rosenblum68:

Problem: Orders with Zencart using googlecheckout do not show up in zencart/admin orders list.

PLEASE HELP!
jeff

I'm using:

zen-cart-v1.3.7-full-fileset-12302006
(w/theme "silverfish")
google checkout 1.04r

I have doublechecked GoogleCheckout installation

In "response_error.log" I get:
Tue Feb 6 4:54:35 PST 2007:- Line 119: headers['Authorization'] is NULL.

At GC, Am using callback:
https://www.newenglandparkingcouncil.org/zencart/googlecheckout/responsehandler.php

have tried both XML and HTML settings.

** SOLVED: solved the problem with a previous post:**

ropu has the code posted at:

http://google-checkout-zencart.googl...com/svn/trunk/

You will have to package the files yourself.

My suggestion is that you install 1.0.4 from the downloads then replace only these files - in the googlecheckout folder:

responsehandler.com
xmlbuilder.php
xmlparser.php

and add - in the googlecheckout folder:

googlemerchantcalculations.php
googleresult.php

You will be able to select one of the shipping methods as in 1.0.4. I use the table method.

This is the setup I have that works.

I believe that the newer responsehandler.php resolves the issue of items not feeding back to Admin. The two new files contain functions called by the new responsehandler.php and are needed to prevent error messages. The 2 xml...php files have improved xml handling functions.

The parts of 1.0.5 that don't seem to work - the merchant selectable shipping methods - are partly contained in gcheckout.php and the other files in the other folders that I don't recommend changing. __________________
Doug

06 Feb 2007, 20:42
#625
anjordan77 avatar

anjordan77

Zen Follower

Join Date:
Jun 2006
Location:
Midlothian, Virginia, United States
Posts:
110
Plugin Contributions:
0

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

has anyone gotten the google checkout to work with attributes yet?

Like say i have a T-shirt, available in red, white, blue and s, m, l, xl

when customers order they still choose the stuff, they see it as working and then when i go in my admin or google checkout it just says:

T-shirt - -

Shipping 8.50

That's it no size or color. It sure would be a pain to load every single item's attribute by hand ...AGAIN!

Please advise me how to take care of this.

Checkout is working other than that for me.

07 Feb 2007, 13:49
#626
ropu avatar

ropu

Zen Follower

Join Date:
Oct 2006
Location:
argentina
Posts:
243
Plugin Contributions:
0

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

anjordan77:

has anyone gotten the google checkout to work with attributes yet?

Like say i have a T-shirt, available in red, white, blue and s, m, l, xl

when customers order they still choose the stuff, they see it as working and then when i go in my admin or google checkout it just says:

T-shirt - -

Shipping 8.50

That's it no size or color. It sure would be a pain to load every single item's attribute by hand ...AGAIN!

Please advise me how to take care of this.

Checkout is working other than that for me.
anjordan77 hi,

please tell me witch version are you using?

i have 1.0.5, SVN latest, and attributes are shown.

Have a look to googlecheckout/gcheckout.php line 149

    $gcheck->element('item-description', $products_description);

at that line attributes are passed as item description.

as far a i can see, in ur implementation, item-description is empty.

ropu

07 Feb 2007, 14:51
#627
anjordan77 avatar

anjordan77

Zen Follower

Join Date:
Jun 2006
Location:
Midlothian, Virginia, United States
Posts:
110
Plugin Contributions:
0

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

nope, i have that exact statement there.

Correct me if i'm wrong but Description is the description you type in about each product like for instance.

T-shirt (name)

This t-shirt is made of 50% cotton and 50% polyester and the sizes tend to run small. Choose Color and Size Below(description)

Color Drop down: Size Drop Down:(attributes)

Correct me if i'm wrong but the latest release for google checkout is 1.0.4.r

I have whatever google checkout was included in zen 1.3.5 and i'm running zen 1.3.5

07 Feb 2007, 15:23
#628
anjordan77 avatar

anjordan77

Zen Follower

Join Date:
Jun 2006
Location:
Midlothian, Virginia, United States
Posts:
110
Plugin Contributions:
0

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

I just reinstalled 1.0.4r, testing now:

// ** GOOGLE CHECKOUT **
Fatal error: Cannot redeclare class googlecheckout in /home/apbs77/public_html/includes/modules/payment/googlecheckout.php on line 26

07 Feb 2007, 15:25
#629
dinkar avatar

dinkar

New Zenner

Join Date:
Jun 2006
Posts:
15
Plugin Contributions:
0

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

Hi ropu,

i downloaded codes from http://google-checkout-zencart.googlecode.com/svn/trunk/ and installed. I am using zen-cart 1.3.7. I am right now working on sandbox. when i click on google checkout button, i am getting error as

<error serial-number="ea23ce78-bd0e-426a-88a2-606492a983d0"> − <warning-messages> − <string> XML failed to validate against the schema at line: 26, column: 26, with error: cvc-datatype-valid.1.2.1: '' is not a valid value for 'decimal'. </string> − <string> XML failed to validate against the schema at line: 26, column: 26, with error: cvc-complex-type.2.2: Element 'price' must have no element [children], and the value must be valid. </string> </warning-messages> − <error-message> Error parsing XML; message from parser is: Invalid value for body of price in checkout-shopping-cart/checkout-flow-support/merchant-checkout-flow-support/shipping-methods/merchant-calculated-shipping: Required field must not be blank </error-message> </error>

Can u please suggest what need to be done?

Thanks,

07 Feb 2007, 17:52
#630
ropu avatar

ropu

Zen Follower

Join Date:
Oct 2006
Location:
argentina
Posts:
243
Plugin Contributions:
0

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

dinkar:

Hi ropu,

i downloaded codes from http://google-checkout-zencart.googlecode.com/svn/trunk/ and installed. I am using zen-cart 1.3.7. I am right now working on sandbox. when i click on google checkout button, i am getting error as

<error serial-number="ea23ce78-bd0e-426a-88a2-606492a983d0"> − <warning-messages> − <string> XML failed to validate against the schema at line: 26, column: 26, with error: cvc-datatype-valid.1.2.1: '' is not a valid value for 'decimal'. </string> − <string> XML failed to validate against the schema at line: 26, column: 26, with error: cvc-complex-type.2.2: Element 'price' must have no element [children], and the value must be valid. </string> </warning-messages> − <error-message> Error parsing XML; message from parser is: Invalid value for body of price in checkout-shopping-cart/checkout-flow-support/merchant-checkout-flow-support/shipping-methods/merchant-calculated-shipping: Required field must not be blank </error-message> </error>

Can u please suggest what need to be done?

Thanks,

Try setting correct Default Values in the Admin UI for all shipping Methods.

as far as i can see an empty string is sent in the price item

ropu

07 Feb 2007, 18:00
#631
nabrown78 avatar

nabrown78

New Zenner

Join Date:
Feb 2007
Location:
Santa Cruz, CA
Posts:
14
Plugin Contributions:
0

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

I apologize if this is repeated somewhere in the forums, but I couldn't find mention of it myself. The URL for the Google Checkout Sandbox has changed:
http://groups.google.com/group/google-checkout-api-updates/browse_thread/thread/81767ced93b9763f/?gsessionid=-QVE1zTmcuw

So if you are already using the Zen Cart Google payment module (in sandbox mode for testing), you have to go into your configuration table, find the Google Checkout entries (probably towards the last rows) and edit the fields accordingly.

If you haven't run the install script yet, you can edit the sandbox urls in googlecheckout.php, so that the correct values get stored in the database.

Hope this helps someone, I was momentarily mystified.

07 Feb 2007, 18:10
#632
ropu avatar

ropu

Zen Follower

Join Date:
Oct 2006
Location:
argentina
Posts:
243
Plugin Contributions:
0

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

anjordan77:

I just reinstalled 1.0.4r, testing now:

// ** GOOGLE CHECKOUT **
Fatal error: Cannot redeclare class googlecheckout in /home/apbs77/public_html/includes/modules/payment/googlecheckout.php on line 26

AnJordan, the latest release is at googlecode svn/trunk 1.0.5

See my signature for the link.

ropu

07 Feb 2007, 19:00
#633
dinkar avatar

dinkar

New Zenner

Join Date:
Jun 2006
Posts:
15
Plugin Contributions:
0

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

ropu:

Try setting correct Default Values in the Admin UI for all shipping Methods.

as far as i can see an empty string is sent in the price item

ropu

Hi ropu,
all have entered all shipping values as $5.00. see screen printout.

http://lh3.google.com/image/durjnet8/RcohK-S95CI/AAAAAAAAACI/7AVOwQrFLY0/s288/GCproblem1.JPG

I assume problem is something else.

pls suggest

07 Feb 2007, 20:10
#634
nabrown78 avatar

nabrown78

New Zenner

Join Date:
Feb 2007
Location:
Santa Cruz, CA
Posts:
14
Plugin Contributions:
0

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

I know many people have posted on this issue, and I have tried subsequent suggestions, with no luck. I am operating in Sandbox mode with the files from GCO 1.0.5.
Everything appears to be working (I receive email notification of an order and the message log shows the order xml data). However, the orders do not appear in my Zen admin, and stock is not deducted. The only error in my error log is:
Wed Feb 7 14:02:05 CST 2007:- Line 119: headers['Authorization'] is NULL.

Which appears several times. I don't see anything in my sandbox "Integration Issues" section.
I'm running Zen Cart 1.3.7.

Any help, direction, advice would be really appreciated.

07 Feb 2007, 20:37
#635
ropu avatar

ropu

Zen Follower

Join Date:
Oct 2006
Location:
argentina
Posts:
243
Plugin Contributions:
0

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

nabrown78:

I apologize if this is repeated somewhere in the forums, but I couldn't find mention of it myself. The URL for the Google Checkout Sandbox has changed:
http://groups.google.com/group/google-checkout-api-updates/browse_thread/thread/81767ced93b9763f/?gsessionid=-QVE1zTmcuw

So if you are already using the Zen Cart Google payment module (in sandbox mode for testing), you have to go into your configuration table, find the Google Checkout entries (probably towards the last rows) and edit the fields accordingly.

If you haven't run the install script yet, you can edit the sandbox urls in googlecheckout.php, so that the correct values get stored in the database.

Hope this helps someone, I was momentarily mystified.

Please note that googlecheckout/gcheckout.php line 403

if ($srv_mode == 'https://sandbox.google.com/checkout/' && $http_mode == 'http') {

also changed, /checkout/ is added

ropu

07 Feb 2007, 20:43
#636
anjordan77 avatar

anjordan77

Zen Follower

Join Date:
Jun 2006
Location:
Midlothian, Virginia, United States
Posts:
110
Plugin Contributions:
0

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

yeah i installed according to previous posts about adding the 5 files to googlecheckout/

things seem to work except the admin getting notification. I even see attributes popping up.

ropu, in other news, is google going to try to figure out how to merge the googlebase with zencart? the current googlefroogle feeder isn't quite up to par with google.

08 Feb 2007, 15:00
#637
ropu avatar

ropu

Zen Follower

Join Date:
Oct 2006
Location:
argentina
Posts:
243
Plugin Contributions:
0

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

anjordan77:

yeah i installed according to previous posts about adding the 5 files to googlecheckout/

things seem to work except the admin getting notification. I even see attributes popping up.

ropu, in other news, is google going to try to figure out how to merge the googlebase with zencart? the current googlefroogle feeder isn't quite up to par with google.

try changing in version 1.0.5 googlecheckout/responsehandler.php line 93

  if(isset($HTTP_SERVER_VARS['PHP_AUTH_USER']) && isset($HTTP_SERVER_VARS['PHP_AUTH_PW'])) {
    $compare_mer_id = $HTTP_SERVER_VARS['PHP_AUTH_USER']; 
    $compare_mer_key = $HTTP_SERVER_VARS['PHP_AUTH_PW'];
  } else {
      error_func("Line 119: headers['Authorization'] is NULL.\n");
      exit(1);
  }
```for 
```php
  if(isset($_SERVER['PHP_AUTH_USER']) && isset($_SERVER['PHP_AUTH_PW'])) {
    $compare_mer_id = $_SERVER['PHP_AUTH_USER']; 
    $compare_mer_key = $_SERVER['PHP_AUTH_PW'];
  } else {
      error_func("Line 119: headers['Authorization'] is NULL.\n");
      exit(1);
  }
```perhaps ur php version doent allow $HTTP_SERVER_VARS

TIP:
use the  Test the implementation: in my signature to test responsehandler ;)

ropu
08 Feb 2007, 18:33
#638
nabrown78 avatar

nabrown78

New Zenner

Join Date:
Feb 2007
Location:
Santa Cruz, CA
Posts:
14
Plugin Contributions:
0

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

Ropu -
Thanks for the new code. Somehow, I'm still getting the same result. Orders are made, show up in GC Sandbox okay, but don't feed back to Zen admin.
When I tried your test script, I placed in a chunk of the response_message.log that was an entire '<new-order-notification>'. What I got back when I went to responsehandler_test.php on my server was this:

HTTP/1.1 100 Continue HTTP/1.1 100 Continue HTTP/1.1 200 OK Date: Thu, 08 Feb 2007 18:31:14 GMT Server: Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a PHP-CGI/0.1b Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Expires: Thu, 19 Nov 1981 08:52:00 GMT Pragma: no-cache X-Powered-By: PHP/4.4.4 Set-Cookie: zenid=fc05c7b4456169559a8d731ceb5541ff; path=/; domain=roll-over-rover.com Transfer-Encoding: chunked Content-Type: text/html; charset=iso-8859-1 Time to response: 0.265028953552 segs Note: This script MUST response in less than 3 sec. so GC srv doesn't timeout.'
```Hope that's not revealing too much. In any case, it's not really what I expected - is that what I should be seeing? Thanks for your help.
08 Feb 2007, 18:49
#639
nabrown78 avatar

nabrown78

New Zenner

Join Date:
Feb 2007
Location:
Santa Cruz, CA
Posts:
14
Plugin Contributions:
0

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

So it seems to me the problem must either be that one of $_SERVER['PHP_AUTH_USER'] or $_SERVER['PHP_AUTH_PW'] isnot set, or somehow my server isn't allowing me access to them or something. Is there any way I can test around these problems easily, to diagnose what's going on?

08 Feb 2007, 19:13
#640
ropu avatar

ropu

Zen Follower

Join Date:
Oct 2006
Location:
argentina
Posts:
243
Plugin Contributions:
0

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

nabrown78:

So it seems to me the problem must either be that one of $_SERVER['PHP_AUTH_USER'] or $_SERVER['PHP_AUTH_PW'] isnot set, or somehow my server isn't allowing me access to them or something. Is there any way I can test around these problems easily, to diagnose what's going on?

Just for debugging, add

<?php 
print_r($_SERVER);
?>

in the first lines of responsehandler.php and run the responsehandler_test.php this will show you all the HTTP headers. one of them must be the Authentications-

if you post the result, please obfuscate the merchant id/key data.

ropu