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,758

Results 3,081 to 3,100 of 3,921
This thread is locked. New replies are disabled.
23 May 2009, 10:18 AM
#3081
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Google Checkout module for ZC 1.3.x (beta)

Just noticed that the field for API callback URL: was blank. I've added this URL in there:

https://www .limelites.co.uk/googlecheckout/responsehandler.php

Not sure if this has been the cause, but time will tell. Anyone wanna buy a new pair of jeans LOL... Special Zen Cart discount??

23 May 2009, 12:03 PM
#3082
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)

Google Checkout mod not easy to install...
without going through all your settings, including those at google, cannot
say for sure what not working correctly...
This is how I got it working....use Classic template, without
any mods running...get google checkout running....then
switch to desired template, then start adding mods.
HTH

23 May 2009, 2:03 PM
#3083
davecb avatar

davecb

New Zenner

Join Date:
May 2009
Posts:
16
Plugin Contributions:
0

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

What steps will reproduce the problem?

  1. Start up the Zen Cart Admin after installation of Google Checkout
  2. Go TO the "Payments tab"
  3. Receive this error

"Fatal error: Cannot redeclare class googlecheckout
in /home6/rinceban/public_html/includes/modules/payment/googlecheckout.php
on line 308"

What is the expected output? What do you see instead? The aility to
install and configure the module.

What version of the product are you using? On what operating system? Zen
Cart 1.3.8a and Google Checkout for this version forj the download.

Anyone have any ideas??

23 May 2009, 3:50 PM
#3084
davecb avatar

davecb

New Zenner

Join Date:
May 2009
Posts:
16
Plugin Contributions:
0

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

Well nothing like answering my own post. I fixed the problem - It was easy!!

I downloaded and installed the GC file FROM THIS SITE rather than from THE GOOGLE DEVELOPMENT SITE.

I noticed that both are the same version number, but somthing is different with several of the files. The package from this site works good in sandbox testing so far. I do have some settings jacked up and some work to do, but all in all it is working including shipping and tax calculation.

I need to figure out how to remove the internal checkout button and only show the google checkout button.

23 May 2009, 4:43 PM
#3085
kiddo avatar

kiddo

Totally Zenned

Join Date:
Jul 2006
Location:
SF Bay Area
Posts:
837
Plugin Contributions:
1

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

DaveCB:

I need to figure out how to remove the internal checkout button and only show the google checkout button.

See post 1710 in this thread for getting rid of the checkout button and some other notes.

23 May 2009, 5:07 PM
#3086
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

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

OK, just had another Google Checkout payment and it's still not communicating with ZC database even though I added this URL in API callback area:

https://www .limelites.co.uk/googlecheckout/responsehandler.php

Anyone know why Google's not talking to ZC ? ? ? ?

23 May 2009, 5:20 PM
#3087
kiddo avatar

kiddo

Totally Zenned

Join Date:
Jul 2006
Location:
SF Bay Area
Posts:
837
Plugin Contributions:
1

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

There are some notes in the package about extra steps required for authentication if your servers PHP is running as CGI (or f-CGI) and a proggie to generate the proper .htaccess authentication.

Can't say if this applies to you, but you may consider it.

Also, I did have a prob with a SEO module that added a lot of stuff to the .htaccess file. I had to add a rule to ignore rewriting the googlecheckout dir.

Just some ideas.

23 May 2009, 6:09 PM
#3088
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

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

I don't use SEO mods, but I'd be eternally grateful if you could point me in the right direction re the 'extra steps required for authentication' or how to generate the .htaccess file. I have a .htaccess file in the googlecheckout folder but it only has about four lines.

23 May 2009, 6:38 PM
#3089
davecb avatar

davecb

New Zenner

Join Date:
May 2009
Posts:
16
Plugin Contributions:
0

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

kiddo:

See post 1710 in this thread for getting rid of the checkout button and some other notes.

Kiddo - Thanks!

23 May 2009, 7:38 PM
#3090
kiddo avatar

kiddo

Totally Zenned

Join Date:
Jul 2006
Location:
SF Bay Area
Posts:
837
Plugin Contributions:
1

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

limelites:

I don't use SEO mods, but I'd be eternally grateful if you could point me in the right direction re the 'extra steps required for authentication' or how to generate the .htaccess file. I have a .htaccess file in the googlecheckout folder but it only has about four lines.

These instructions are packaged in the GC kit I have:

  1. .htaccess Basic Authentication Mode with PHP over CGI? If your site is
    installed on a PHP CGI you must disable Basic Authentication over PHP.
    To avoid spoofed messages (only if this feature is enabled) reaching
    responsehandler.php, set the .htaccess file with the script linked
    (http://your-site/admin/htaccess.php).
    Set permission 777 for http://your-site/googlecheckout/ before running
    the script. Remember to turn back permissions after creating the files.

Also carefully check the callback value on Google.

If you need to compare settings to a known good system (on ZC, Google, or both) let me know and I'll list them for comparison. Could be one little checkbox is wrong somewhere.

23 May 2009, 8:07 PM
#3091
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

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

kiddo:

These instructions are packaged in the GC kit I have:

  1. .htaccess Basic Authentication Mode with PHP over CGI? If your site is
    installed on a PHP CGI you must disable Basic Authentication over PHP.
    To avoid spoofed messages (only if this feature is enabled) reaching
    responsehandler.php, set the .htaccess file with the script linked
    (http://your-site/admin/htaccess.php).
    Set permission 777 for http://your-site/googlecheckout/ before running
    the script. Remember to turn back permissions after creating the files.

Also carefully check the callback value on Google.

If you need to compare settings to a known good system (on ZC, Google, or both) let me know and I'll list them for comparison. Could be one little checkbox is wrong somewhere.

Kiddo, thanks for your help. I do run PHP over CGI and I have it set up accordingly:

**If setted True you MUST configure your .htaccess files here.

  • True**

I had already ran the script some time ago, but I set permissions and ran it again (changing back to 755)....

I don't think this will help though as I had already done this some time ago. I have a feeling it's something to do with my settings in https://checkout.google.com/sell/settings?section=Integration.............. advanced settings.

I presently do not have any of these boxes ticked?? Is this right??

The only boxes ticked on this page are "only post digitally signed carts" and "XML".... everything else is unchecked?

What do you mean by "check the callback value on Google" ??

23 May 2009, 8:34 PM
#3092
kiddo avatar

kiddo

Totally Zenned

Join Date:
Jul 2006
Location:
SF Bay Area
Posts:
837
Plugin Contributions:
1

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

Well, in post 3073, you posted your callback address. It is broken but I assumed you did that just to not have the real url posted here.

Just for yuks, do you have a sandbox account you can switch to for testing?

In a while I'll dig out my google and ZC settings and post so you can compare. One other thing, does your host offer the option to NOT run PHP as cgi? So far the only diff I see is that I run PHP as suexec and don't have that box checked as true.

24 May 2009, 10:28 AM
#3093
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

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

kiddo:

Well, in post 3073, you posted your callback address. It is broken but I assumed you did that just to not have the real url posted here.

Just for yuks, do you have a sandbox account you can switch to for testing?

In a while I'll dig out my google and ZC settings and post so you can compare. One other thing, does your host offer the option to NOT run PHP as cgi? So far the only diff I see is that I run PHP as suexec and don't have that box checked as true.

Yes, in 3073 I broke the URL so people could read it as it was truncated otherwise.

I never did set up a Sandbox account, I just dived straight in and went live.

My host does not offer the option of not running PHP as CGI. My old host did and GC worked well, but since the swap over I've not been able to make it communicate with my database :-(

I'd appreciate a look at your settings, just to compare. Thank you so much...

24 May 2009, 5:37 PM
#3094
kiddo avatar

kiddo

Totally Zenned

Join Date:
Jul 2006
Location:
SF Bay Area
Posts:
837
Plugin Contributions:
1

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

On the ZC side:

GoogleCheckout

Google Checkout Module Version
v1.4.7

Enable GoogleCheckout Module
True

Select Mode of Operation
https://checkout.google.com/

Production Merchant ID
999999999999

Production Merchant Key
99999999999999

Sandbox Merchant ID
9999999999999

Sandbox Merchant Key
999999999999

.htaccess Basic Authentication Mode
False

Select Merchant Calculation Mode of Operation
https

Disable Google Checkout for Virtual Goods?
True

Allow US PO BOX shipping?
True

Default Values for Real Time Shipping Rates
ups1DMdomestic_types_VD:1, ups1DMLdomestic_types_VD:1, ups1DAdomestic_types_VD:1, ups1DALdomestic_types_VD:1, ups1DAPIdomestic_types_VD:1, ups1DPdomestic_types_VD:1, ups1DPLdomestic_types_VD:1, ups2DMdomestic_types_VD:1, ups2DMLdomestic_types_VD:1, ups2DAdomestic_types_VD:1, ups2DALdomestic_types_VD:1, ups3DSdomestic_types_VD:1, upsGNDdomestic_types_VD:1, upsGNDCOMdomestic_types_VD:1, upsGNDRESdomestic_types_VD:1, upsSTDdomestic_types_VD:1, upsXPRdomestic_types_VD:1, upsXPRLdomestic_types_VD:1, upsXDMdomestic_types_VD:1, upsXDMLdomestic_types_VD:1, upsXPDdomestic_types_VD:1, uspsEXPRESSdomestic_types_VD:1, uspsFIRST CLASSdomestic_types_VD:1, uspsPRIORITYdomestic_types_VD:1, uspsPARCELdomestic_types_VD:1, uspsBPMdomestic_types_VD:1, uspsLIBRARYdomestic_types_VD:1, uspsGlobal Express Guaranteedinternational_types_VD:1, uspsGlobal Express Guaranteed Non-Document Rectangularinternational_types_VD:1, uspsGlobal Express Guaranteed Non-Document Non-Rectangularinternational_types_VD:1, uspsExpress Mail International (EMS)international_types_VD:1, uspsExpress Mail International (EMS) Flat Rate Envelopeinternational_types_VD:1, uspsPriority Mail Internationalinternational_types_VD:1, uspsPriority Mail International Flat Rate Boxinternational_types_VD:1, uspsPriority Mail International Flat Rate Envelopeinternational_types_VD:1, uspsFirst-Class Mail Internationalinternational_types_VD:1

GoogleCheckout Carrier Calculated Shipping
False

Carrier Calculater Shipping Configuration
fedexGrounddomestic_types_CCS:0|0|0, fedexHome Deliverydomestic_types_CCS:0|0|0, fedexExpress Saverdomestic_types_CCS:0|0|0, fedex2Daydomestic_types_CCS:0|0|0, fedexStandard Overnightdomestic_types_CCS:0|0|0, fedexPriority Overnightdomestic_types_CCS:0|0|0, fedexFirst Overnightdomestic_types_CCS:0|0|0, upsGrounddomestic_types_CCS:0|0|0, ups3 Day Selectdomestic_types_CCS:0|0|0, ups2nd Day Airdomestic_types_CCS:0|0|0, upsNext Day Air Saverdomestic_types_CCS:0|0|0, upsNext Day Airdomestic_types_CCS:0|0|0, upsNext Day Air Early AMdomestic_types_CCS:0|0|0, uspsMedia Maildomestic_types_CCS:0|0|0, uspsParcel Postdomestic_types_CCS:0|0|0, uspsExpress Maildomestic_types_CCS:0|0|0

Rounding Policy Mode
HALF_EVEN

Rounding Policy Rule
PER_LINE

Cart Expiration Time (Minutes)
NONE

Also send notifications with Zencart
False

Google Analytics Id
UA-blah blah-1

3rd Party Tracking
NONE

Google Checkout restricted product categories


Continue shopping URL.
checkout_success

Sort order of display.
0

Will get the google side settings in a few min.

24 May 2009, 5:50 PM
#3095
kiddo avatar

kiddo

Totally Zenned

Join Date:
Jul 2006
Location:
SF Bay Area
Posts:
837
Plugin Contributions:
1

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

On the google side there isn't a whole lot to set.

The "my company will only post digitally signes certs" is checked (TRUE)

The callback method is set to: XML

Under "Advanced Settings", Nothing is checked. all FALSE.

And of course the API call back url is

https://www.myshop.com/googlecheckout/responsehandler.php

There aren't really any other settings in the integration screen.

The only other setting is the local tax rate.

24 May 2009, 7:22 PM
#3096
davecb avatar

davecb

New Zenner

Join Date:
May 2009
Posts:
16
Plugin Contributions:
0

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

DaveCB:

Kiddo - Thanks!

Well I have managed to break the PHP file twice trying to hide the checkout button - From the referenced post, could anyone walk me through which lines get commented out?

I want only the Google checkout button to show.. The google developers should put this option in there control panel.

24 May 2009, 7:32 PM
#3097
davecb avatar

davecb

New Zenner

Join Date:
May 2009
Posts:
16
Plugin Contributions:
0

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

philldo:

You RAWK! I've been bangin' my head trying to figure this out.

After trying hard, I thought that I would just bring this old post forward a bit. Looks to me like the code has changed since this early version. Nothing is the same. THe line numbers do not match up. Even what sould be a simple item as simple as hiding the " - or use - " line is not located in the same file.

ANy help would be appreciated.

24 May 2009, 9:54 PM
#3098
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

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

kiddo:

On the google side there isn't a whole lot to set.

The "my company will only post digitally signes certs" is checked (TRUE)

The callback method is set to: XML

Under "Advanced Settings", Nothing is checked. all FALSE.

And of course the API call back url is

https://www.myshop.com/googlecheckout/responsehandler.php

There aren't really any other settings in the integration screen.

The only other setting is the local tax rate.

I got another Google Checkout order this evening and it is showing in Admin!! EUREKA!!

The only thing I changed since my first post here is the re-keying of the .htpasswd file via admin/modules/payment/Google Checkout/.htaccess Basic Authentication Mode TRUE/If setted True you MUST configure your .htaccess files here.

After resetting these files, it seems that it's now communicating!!

Thank you KIDDO!!!!

27 May 2009, 6:13 PM
#3099
hcd888 avatar

hcd888

Zen Follower

Join Date:
May 2008
Posts:
348
Plugin Contributions:
0

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

Hi hope somebody can help me. Iam trying to install google checkout.

Ive installed it and inputted my google merchant id & google merchant key, but in checkout on my site The Google Checkout logo is grayed out and says:

What is Google Checkout?

  • Some items are in GC restricted category.
  • There are multiple shipping options selected and they use different shipping tax tables or some dont use tax tables

I then went to my Google checkout account and i dont know what a API callback URL is. I put my website URL in and it displays An HTTPS URL is required. :frusty:

Does anybody kow what i should be doing???? Thanks

27 May 2009, 6:18 PM
#3100
kiddo avatar

kiddo

Totally Zenned

Join Date:
Jul 2006
Location:
SF Bay Area
Posts:
837
Plugin Contributions:
1

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

the response handler (call back) would be:

https://WWW.YOUR-SITE.COM/googlecheckout/responsehandler.php

Do you have an SSL cert installed and working on your site?

Do you understand the instructions about shipping options in the kit?