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 641 to 660 of 3,921
This thread is locked. New replies are disabled.
08 Feb 2007, 20:10
#641
nabrown78 avatar

nabrown78

New Zenner

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

Google Checkout module for ZC 1.3.x (beta)

Dear ropu,
Thanks for the snippet. So this is the array I see now, no Merchant ID or key in sight.

 
Array ( [PATH] => /usr/local/bin:/usr/bin:/bin
[CONTENT_LENGTH] => 2607 
[CONTENT_TYPE] => application/xml 
[DOCUMENT_ROOT] => /home/sally/public_html 
[HTTP_ACCEPT] => application/xml 
[HTTP_EXPECT] => 100-continue 
[HTTP_HOST] => [URL="http://www.roll-over-rover.com/"]www.roll-over-rover.com[/URL] 
[REMOTE_ADDR] => 74.52.178.162 [REMOTE_PORT] => 41554 [SCRIPT_FILENAME] => /home/sally/public_html/store/googlecheckout/responsehandler.php [SERVER_ADDR] => 74.52.178.162 
[SERVER_ADMIN] => [email protected] 
[SERVER_NAME] => [URL="http://www.roll-over-rover.com/"]www.roll-over-rover.com[/URL] 
[SERVER_PORT] => 80 
[SERVER_SOFTWARE] => 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 [GATEWAY_INTERFACE] => CGI/1.1
[SERVER_PROTOCOL] => HTTP/1.1 
[REQUEST_METHOD] => POST 
[QUERY_STRING] => [REQUEST_URI] => /store/googlecheckout/responsehandler.php 
[SCRIPT_NAME] => /store/googlecheckout/responsehandler.php 
[PHP_SELF] => /store/googlecheckout/responsehandler.php [argv] => Array ( ) [argc] => 0 )
```I've been reading up on PHP as CGI rather than Apache - and that 'PHP_AUTH_USER' isn't available? I know some PHP, but I certainly don't know squat about server configurations, so I'm lost here. I'd like to figure it out though. I'm sure others may have this problem in the future as well.
Thanks
08 Feb 2007, 21:01
#642
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:

Dear ropu,
Thanks for the snippet. So this is the array I see now, no Merchant ID or key in sight.

Array ( [PATH] => /usr/local/bin:/usr/bin:/bin
[CONTENT_LENGTH] => 2607
[CONTENT_TYPE] => application/xml
[DOCUMENT_ROOT] => /home/sally/public_html
[HTTP_ACCEPT] => application/xml
[HTTP_EXPECT] => 100-continue
[HTTP_HOST] => [URL="http://www.roll-over-rover.com/"]www.roll-over-rover.com[/URL]
[REMOTE_ADDR] => 74.52.178.162 [REMOTE_PORT] => 41554 [SCRIPT_FILENAME] => /home/sally/public_html/store/googlecheckout/responsehandler.php [SERVER_ADDR] => 74.52.178.162
[SERVER_ADMIN] => [email protected]
[SERVER_NAME] => [URL="http://www.roll-over-rover.com/"]www.roll-over-rover.com[/URL]
[SERVER_PORT] => 80
[SERVER_SOFTWARE] => 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 [GATEWAY_INTERFACE] => CGI/1.1
[SERVER_PROTOCOL] => HTTP/1.1
[REQUEST_METHOD] => POST
[QUERY_STRING] => [REQUEST_URI] => /store/googlecheckout/responsehandler.php
[SCRIPT_NAME] => /store/googlecheckout/responsehandler.php
[PHP_SELF] => /store/googlecheckout/responsehandler.php [argv] => Array ( ) [argc] => 0 )

> Thanks

from php manual 
<http://www.php.net/manual/en/reserved.variables.php#reserved.variables.server>
> PHP_AUTH_USER'          When running under Apache or IIS (ISAPI on PHP 5) as module doing          HTTP authentication this variable is set to the username provided by          the user.         'PHP_AUTH_PW'          When running under Apache or IIS (ISAPI on PHP 5) as module doing          HTTP authentication this variable is set to the password provided by          the user.<http://www.php.net/manual/en/features.http-auth.php>
> The HTTP Authentication hooks in PHP are only available when it is    running as an Apache module and is hence not available in the CGI version.This says it wont work with CGI.

But please try this approach 

The $PHP_AUTH_USER, $PHP_AUTH_PW, and $PHP_AUTH_TYPE global variables are available only when PHP is installed as a module. If you're using the CGI version of PHP, you're limited to .htaccess-based authentication or database-driven authentication using HTML forms to input the username and password and PHP to validate matches.

UPDATE #5 from
<http://drupal.org/node/28408>

There are more tips to hack the CGI module, but is way out of the topic of this forum.

ropu
09 Feb 2007, 09:26
#643
aharper78 avatar

aharper78

New Zenner

Join Date:
Jan 2007
Posts:
18
Plugin Contributions:
0

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

Has anyone come up with a stable, working GC module for 1.3.7 without any problems it creates with paypal EC?

09 Feb 2007, 16:06
#644
enchantedlingerie avatar

enchantedlingerie

Zen Follower

Join Date:
Nov 2005
Posts:
101
Plugin Contributions:
0

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

does anyone know if this works OK with 1.3.7.
are there any changes that i would need to make to make this compatible?
any info would be great, i just want to make sure i know exactly what to do before i install it.

thank so much

10 Feb 2007, 05:23
#645
kenaniah avatar

kenaniah

Zen Follower

Join Date:
Jun 2005
Posts:
111
Plugin Contributions:
0

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

I have google checkout and paypal express checkout working on 1.3.7. I had a customer use the google checkout. It worked fine then. Here are the problems I see with Google Checkout though:

  1. I offer insurance as optional. I have created a table and flat rate but the customer will not understand that the table rate is with insurance. Basically, the customer is not seeing the optional order additions.

  2. Only 1 shipping option allowed... 1st Class (or priority or express), .... while Priority and Express are unavailable. The customer doesn't really know which shipping they are getting either. I have tried to create shipping files based on the tables.php but get a message
    Warning: reset(): Passed variable is not an array or object in /home/xxxxx/public_html/admin/modules.php on line 279

Warning: Variable passed to each() is not an array or object in /home/xxxxx/public_html/admin/modules.php on line 280

I guess it wouldn't work even if I was able to install them?

I guess for now I can put some text on top of the button trying to explain the table vs. flat rate.... don't know how well this will work.

  1. I am going to pull my hair out if one of my international customers pays with my US 1st class mail rate.... the Google Checkout module should have the option of allowing for a payment zone like paypal express checkout does.

I think Google Checkout should come back to the cart and finish the order, thus allowing the proper shipping and order additions to be included, if not this then it should allow more shipping options with descriptions.

I can send my \includes\templates\my_template\templates\ files to a zen cart support person if they would like to post them.

10 Feb 2007, 11:25
#646
woodymon avatar

woodymon

Totally Zenned

Join Date:
Sep 2004
Posts:
2,309
Plugin Contributions:
1

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

ropu:

For now GC module does not support soft goods, because GC doesnt. But is in the agenda.
Good to hear!
ropu:

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

Ropu,

For some ideas, maybe investigate how the PayPal IPN or PayPal Express for Zen Cart mods manage soft goods.

Unfortunately we had to remove Google Checkout from our shop.

  1. Customers were getting confused when we offered one payment method for soft goods yet offered two payment methods for hard goods.

  2. Too difficult to manage manually emailing purchased downloads to customers.

No disrespect intended but maybe we can convince the Google guys to throw some additional OS project development funding towards moving the GC for ZC mod development further along.

The day soft goods is supported by GC will be a very good day.

Woody

10 Feb 2007, 17:58
#647
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

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

Dear ropu,

Can you tell me which version of GCO module currently supports international shipping ? Thank you.

11 Feb 2007, 16:52
#648
eaglewu avatar

eaglewu

New Zenner

Join Date:
Jan 2007
Posts:
82
Plugin Contributions:
0

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

The order of GC is not shown in the admin. I think several people already mentioned this, but I did not see the solution.
I check my sql, then I find the two tables google_orders and google_checkout were created (am I right?). Since all the tables of mine have the prefix. I think add the prefix to these two tables may work. But I don't know how to do that. Can anyone help to write the sql codes?

This may not work out, but I will try it.

Thanks,

12 Feb 2007, 05:57
#649
g0d4lm1ty avatar

g0d4lm1ty

Zen Follower

Join Date:
Sep 2006
Posts:
257
Plugin Contributions:
0

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

OK... maybe i am missing something... I installed the latest version.. now the radio button is gone and the new sandbox url is not showing up... 1.04r is what I dl'd maybe I am a rere... maybe i missed the thread..... but I am lost now... I did remove and re-install the module... thanks for any help

12 Feb 2007, 14:29
#650
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)

yellow1912:

Dear ropu,

Can you tell me which version of GCO module currently supports international shipping ? Thank you.

Yellow, hi

in fact GC module can support intl shipping. but the problem is that GC system does not support them.

When we have any updates, it will be notified here.

ropu

12 Feb 2007, 16:34
#651
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)

eaglewu:

The order of GC is not shown in the admin. I think several people already mentioned this, but I did not see the solution.
I check my sql, then I find the two tables google_orders and google_checkout were created (am I right?). Since all the tables of mine have the prefix. I think add the prefix to these two tables may work. But I don't know how to do that. Can anyone help to write the sql codes?

This may not work out, but I will try it.

Thanks,

Hi, that in fact wont change anything, table names are stored in the includes/modules/payment/googlecheckout.php class.

Please, double check ur logs, configuration and Doc files.

if that doesnt work, try to fully describe ur issue...

ropu

13 Feb 2007, 02:23
#652
regenbauma avatar

regenbauma

New Zenner

Join Date:
Jul 2006
Posts:
40
Plugin Contributions:
0

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

completed a site that uses two custom shipping modules for R&L freightlines, and the new UPSxml interface. Reading the GCO notes we need to , according to the release notes .....

"For each enabled module you'll have to set the default values in the Google Checkout Admin UI.This Value will be used if for any reason Google Checkout cannot reach your API callback to calculate the shipping price. "

where is this configured .... i dont see a place to do this in GCO admin or in ZC admin

"The available shipping methods for each shipping provider must be configured in includes/modules/payment/googlecheckout.php in the mc_shipping_methods parameter. If you want to disable one or more methods, just comment them out.
Be aware that if you mix flat rate and real time rates, both will be taken as merchant-calculated-shipping. "

where is this ?

Can you give me some clues on what is required to get these extra shipping modules to take effect . The notes refer to includes/modules/payment/googlecheckout.php in the mc_shipping_methods there is no such code structure.

im running a ZC 1.3.6 .... and GCO
GOOGLE CHECKOUT PLUGIN FOR ZEN CART v1.0.5b1 - 1/12/2007

Please , any help is gettign my two shipping moduels to with with GCO is appreciated

13 Feb 2007, 02:24
#653
regenbauma avatar

regenbauma

New Zenner

Join Date:
Jul 2006
Posts:
40
Plugin Contributions:
0

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

We completed a ZC site that uses two custom shipping modules for R&L freightlines, and the new UPSxml interface. Reading the GCO notes we need to , according to the release notes .....

"For each enabled module you'll have to set the default values in the Google Checkout Admin UI.This Value will be used if for any reason Google Checkout cannot reach your API callback to calculate the shipping price. "

where is this configured .... i dont see a place to do this in GCO admin or in ZC admin

"The available shipping methods for each shipping provider must be configured in includes/modules/payment/googlecheckout.php in the mc_shipping_methods parameter. If you want to disable one or more methods, just comment them out.
Be aware that if you mix flat rate and real time rates, both will be taken as merchant-calculated-shipping. "

where is this ?

Can you give me some clues on what is required to get these extra shipping modules to take effect . The notes refer to includes/modules/payment/googlecheckout.php in the mc_shipping_methods there is no such code structure.

im running a ZC 1.3.6 .... and GCO
GOOGLE CHECKOUT PLUGIN FOR ZEN CART v1.0.5b1 - 1/12/2007

Please , any help is gettign my two shipping moduels to with with GCO is appreciated

13 Feb 2007, 12:49
#654
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)

regenbauma:

completed a site that uses two custom shipping modules for R&L freightlines, and the new UPSxml interface. Reading the GCO notes we need to , according to the release notes .....

"For each enabled module you'll have to set the default values in the Google Checkout Admin UI.This Value will be used if for any reason Google Checkout cannot reach your API callback to calculate the shipping price. "

where is this configured .... i dont see a place to do this in GCO admin or in ZC admin

"The available shipping methods for each shipping provider must be configured in includes/modules/payment/googlecheckout.php in the mc_shipping_methods parameter. If you want to disable one or more methods, just comment them out.
Be aware that if you mix flat rate and real time rates, both will be taken as merchant-calculated-shipping. "

where is this ?

Can you give me some clues on what is required to get these extra shipping modules to take effect . The notes refer to includes/modules/payment/googlecheckout.php in the mc_shipping_methods there is no such code structure.

im running a ZC 1.3.6 .... and GCO
GOOGLE CHECKOUT PLUGIN FOR ZEN CART v1.0.5b1 - 1/12/2007

Please , any help is gettign my two shipping moduels to with with GCO is appreciated

hi regenbauma,

this is a resumed copy of the ncludes/modules/payment/googlecheckout.php mc_shipping_methods method:

$this->mc_shipping_methods = array('usps' => array(     'domestic_types' => 
                                                             array(    'Express' => 'Express Mail', 
                                                                     'First Class' => 'First-Class Mail', 
                                                                                         'Library' => 'Library'), 
                                                            'international_types' => 
                                                                array(    'GXG Document' => 'Global Express Guaranteed Document Service', 
                                                                     'GXG Non-Document' => 'Global Express Guaranteed Non-Document Service', 
                                                                     'Express' => 'Global Express Mail (EMS)'
                                                     ), 
                                        'zones' => array(     
                                                         'domestic_types' => array('zones' => 'Zones Rates') 
                                                        ),  
                                                         
                                        'fedexexpress' => array(     
                                                         'domestic_types' => array( 
                                                                                 '03' => 'FedEx 2Day', 
                                                                                 '20' => 'FedEx Express Saver') 
                                                        ),  
                                        'fedexground' => array(     
                                                         'domestic_types' => array( 
                                                                                     '92' => 'FedEx Ground Service') 
                                                        ),  
                                     // flat methods         
                                     'flat' => array(     
                                                         'domestic_types' => array('flat' => GOOGLECHECKOUT_FLAT_RATE_SHIPPING) 
                                                        ), 
                                     'item' => array(     
                                                         'domestic_types' => array('item' => GOOGLECHECKOUT_ITEM_RATE_SHIPPING) 
                                                        ), 
                                     'table' => array(     
                                                         'domestic_types' => array('table' => GOOGLECHECKOUT_TABLE_RATE_SHIPPING) 
                                                        )  
                                      
                                     );

you should also add this

      $this->mc_shipping_methods_names = array(
      'usps' => 'USPS',
      'fedexexpress' => 'Fedex Express',
      'fedexground' => 'Fedex Ground',
      'zones' => 'Zones', 
      'flat' => 'Flat Rate',
      'item' => 'Item',
      'table' => 'Table');

hope this helps.

ropu

13 Feb 2007, 13:01
#655
triplemoons avatar

triplemoons

New Zenner

Join Date:
Oct 2006
Location:
Hanover, PA
Posts:
71
Plugin Contributions:
0

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

Wow, five months later and there still isn't a stable release of this mod?

13 Feb 2007, 13:28
#656
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)

TripleMoons:

Wow, five months later and there still isn't a stable release of this mod?

Tripple, the release is stable with a flat Zencart installation, the issue is when, as you may notice, must be merged with many different contributions and server configurations.

Im publishing some demos servers to show how this module works.

For now the only big issue is the time out problem with shipping calculations. but that is not a GC module fault, GC srv times out in 3 secs, and as you should know FEdex, usps, ups, some times take longer to response. More over, php doe NOT have threads, so is difficult to do parallel instead of serial ones, this makes providers timeout to sum, increasing the chance of GC srv timeout. Any ideas are very appreciated!

Here is what the idea is about,
http://www.webforumz.com/php-forum/12595-multithreaded-php.htm#post96102

if you still have issues, please, post them or PM me, im sure we can solve them

Thank you for all your collaboration,

ropu

13 Feb 2007, 18:14
#657
nresults avatar

nresults

New Zenner

Join Date:
Sep 2006
Posts:
14
Plugin Contributions:
0

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

I too am having trouble getting Google Checkout orders to show up in admin. I've double checked the installation and everything appears to be in order. I do not receive any error messages from Google, or from the responsehandler.php.

What should I be looking for that would cause Zencart to not update with orders processed via Google Checkout?

Any help would be appriciated.

13 Feb 2007, 18:53
#658
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)

nresults:

I too am having trouble getting Google Checkout orders to show up in admin. I've double checked the installation and everything appears to be in order. I do not receive any error messages from Google, or from the responsehandler.php.

What should I be looking for that would cause Zencart to not update with orders processed via Google Checkout?

Any help would be appriciated.

nresults, have you look at the logs under googlecheckout/ ?

you have tested responshandler.php with responsehandler_test.php in my signature?

give us your site configuration, zencart version, GC module version, web server config, using CGI?

all this info help us determine where is ur issue.

thanks, ropu

13 Feb 2007, 21:03
#659
mindfulwanderer avatar

mindfulwanderer

New Zenner

Join Date:
Jun 2006
Location:
Pacific Northwest
Posts:
6
Plugin Contributions:
0

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

"New"release, what date? If one installed this in the last weeks, is it already out of date?

jacob13moon:

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

13 Feb 2007, 21:05
#660
nresults avatar

nresults

New Zenner

Join Date:
Sep 2006
Posts:
14
Plugin Contributions:
0

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

ropu:

nresults, have you look at the logs under googlecheckout/ ?

you have tested responshandler.php with responsehandler_test.php in my signature?

give us your site configuration, zencart version, GC module version, web server config, using CGI?

all this info help us determine where is ur issue.

thanks, ropu

Thanks for your prompt response Ropu!

The responsehandler_test.php returned the following:


HTTP/1.1 200 OK
Date: Tue, 13 Feb 2007 20:45:24 GMT
Server: Apache/1.3.37 (Unix) mod_fastcgi/2.4.2 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.3
Set-Cookie: zenid=b2d57e15f53f5eeaaf4db13bd6d248af; path=/; domain=<<removed for privacy>>
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1

Time to response: 2.30815291405 segs
Note: This script MUST response in less than 3 sec. so GC srv doesn't timeout.'


I'm currently running the following:
Zencart Version: V1.3.6
Database Patch Level: 1.3.6
**Database: **MySQL 4.1.21-standard
**HTTP Server: **Apache/1.3.37 (Unix)
**PHP Version: **4.4.3 (Zend: 1.3.0)
Server API: CGI/FastCGI
PHP API: 20020918
PHP Extension: 20020429
Google Checkout: Version 1.0.4r

The response_error.log file contains the following error message, repeated with a new date for each transaction attempt.

"Tue Feb 13 14:45:24 CST 2007:- Line 119: headers['Authorization'] is NULL."

I'm a little new to this. I hope I have given you the information you need.

Thanks for your help!

nresults