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

Results 721 to 740 of 3,921
This thread is locked. New replies are disabled.
28 Feb 2007, 6:39 AM
#721
blessisaacola avatar

blessisaacola

Totally Zenned

Join Date:
Feb 2004
Location:
Georgia, USA
Posts:
1,875
Plugin Contributions:
1

Google Checkout module for ZC 1.3.x (beta)

Also when I upgrade to v1.2RC1 the button is grey out unless I replace /googlecheckout/gcheckout.php then the button is enable and everything works. Also received this error: HTTP Basic Authentication failed. Can't retrive Merchant Id/Key, Installed over CGI??

28 Feb 2007, 6:48 AM
#722
mpayson avatar

mpayson

New Zenner

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

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

ropu:

Hi all.

This release had me really busy these last 5 days.

I finally package the code in a .zip and added to the googlecode site as my signature links.

Thanks Ropu. That fixed the problem that I've been having. Looks like a great release!

28 Feb 2007, 2:09 PM
#723
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)

BlessIsaacola:

Couldn't resolve host 'ur-site'

Time to response: 0.12273311615 segs

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

The above error is what I get when running responsehandler_test.php. Any idea what's causing this? Thanks!

bless, you should replace this data

// Responsehandler.php URL
$url = 'http://ur-site/googlecheckout/responsehandler.php';
// Your Merchant ID
$merid = '';
// Your Merchant Key
$merkey = '';
// Here put the xml u want to emulate! You can take the ones from googlecheckout/response_message.log
$postargs = '<xml replace!>';

with all your site data :D

also in $postargs you should put a valid XML with the GC request you want to test (merchant-calculation-callback, new-order-notification, etc) as the script says, you can get some from response_message.log

ropu

28 Feb 2007, 2:09 PM
#724
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)

mpayson:

Thanks Ropu. That fixed the problem that I've been having. Looks like a great release!

its good to hear that!!

28 Feb 2007, 2:10 PM
#725
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)

BlessIsaacola:

Also when I upgrade to v1.2RC1 the button is grey out unless I replace /googlecheckout/gcheckout.php then the button is enable and everything works. Also received this error: HTTP Basic Authentication failed. Can't retrive Merchant Id/Key, Installed over CGI??

have you uninstall and re install the module from the Admin UI?? and added the merchant id/key?

28 Feb 2007, 2:50 PM
#726
spf avatar

spf

New Zenner

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

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

ropu, any comment on my question on page 72? Thanks.

28 Feb 2007, 5:26 PM
#727
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)

spf:

Ropu, I installed the GCO 1.0.5. Everything else looks good, except the shipping charge is not returned back to Google Checkout from my zen-cart. Do you know how to fix this? thanks

Your server returned no data in its response; Checkout requires data of type merchant-calculation-results in response to merchant-calculation-callback

spf, try the new version, v1.2, the link is in my signature.

errors could be that merchant id/key are wrong, or you are on a php CGI install.

please have a look to response_error.log file.

ropu

28 Feb 2007, 5:34 PM
#728
spf avatar

spf

New Zenner

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

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

ropu:

spf, try the new version, v1.2, the link is in my signature.

errors could be that merchant id/key are wrong, or you are on a php CGI install.

please have a look to response_error.log file.

ropu

Ropu, I think you are correct. I will try to set php over CGI =TRUE. However, I notice the htaccess.php script won't be allowed to run from admin/includes/. Should I move that file to admin/ so I can run the script? Also, where should I save the .htaccess and its passwd file? Thanks

28 Feb 2007, 6:25 PM
#729
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)

spf:

Ropu, I think you are correct. I will try to set php over CGI =TRUE. However, I notice the htaccess.php script won't be allowed to run from admin/includes/. Should I move that file to admin/ so I can run the script? Also, where should I save the .htaccess and its passwd file? Thanks

upss. sure u are not allowed to to run php on admin/includes?

if so, sorry about that, i must change the location of that file.

the files htacess and htpasswd must be saved in the googlecheckout/ dir. it should be show by default when u run htaccess.php

remember it MUST be the full path to directory, see the example.

btw, just to try, enable CGI installation, without adding htaccess file to see if it works (this will disable merchant validation, not recommended for production sites)

ropu

28 Feb 2007, 10:16 PM
#730
blessisaacola avatar

blessisaacola

Totally Zenned

Join Date:
Feb 2004
Location:
Georgia, USA
Posts:
1,875
Plugin Contributions:
1

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

ropu:

have you uninstall and re install the module from the Admin UI?? and added the merchant id/key?

I have installed and reinstalled everything. However, the google button is still not enabled on the site.

The message in response_error.log is: HTTP Basic Authentication failed. Can't retrive Merchant Id/Key, Installed over CGI??

If I set .htaccess Basic Authentication Mode to True instead of false, I am not able to activate the configuration file. Clicking on the link generates the following error: You don't have permission to access /myadminfolder/includes/htaccess.php on this server.

Please provide assistance with how to configure the .htaccess if it's need and where the file needs to be uploaded. Also, why does everything work fine for 1.0.4r but now it cannot connect to GC?

Thanks!

1 Mar 2007, 2:57 AM
#731
cheezylu avatar

cheezylu

New Zenner

Join Date:
Feb 2007
Location:
Chicago, IL
Posts:
56
Plugin Contributions:
0

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

Does anyone have a store with this feature working on it? I would love to take a peek to see how it will look to a customer.

I am hoping that this mod will be the absolute last addition to my cart before I think about going live!

1 Mar 2007, 3:20 AM
#732
jhaase83 avatar

jhaase83

New Zenner

Join Date:
Jan 2007
Location:
MO
Posts:
24
Plugin Contributions:
0

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

What file do I put the code for the google tracking code in? I am starting to get confused now.

1 Mar 2007, 4:02 AM
#733
blessisaacola avatar

blessisaacola

Totally Zenned

Join Date:
Feb 2004
Location:
Georgia, USA
Posts:
1,875
Plugin Contributions:
1

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

ropu:

humbll, hi!

yes, is true, there are 2
<?php if (sizeof($selection) > 1) { ?>
But there is just ONE at line 127 :D, the second one. Im adding some bigger part of the code so you can see how the final code must be.

<?php $radio_buttons = 0; for ($i=0, $n=sizeof($selection); $i<$n; $i++) { ?> <?php if (sizeof($selection) > 1) { if($selection[$i]['id'] == "googlecheckout") continue; ?> <?php echo zen_draw_radio_field('payment', $selection[$i]['id'], ($selection[$i]['id'] == $_SESSION['payment'] ? true : false), 'id="pmt-'.$selection[$i]['id'].'"'); ?> <?php } else { ?> <?php echo zen_draw_hidden_field('payment', $selection[$i]['id']); ?> <?php } ?>

This is what I have in mine:

```php
<?php
  $radio_buttons = 0;
  for ($i=0, $n=sizeof($selection); $i<$n; $i++) {
?>
<?php
    if (sizeof($selection) > 1) {
      if($selection[$i]['id'] == "googlecheckout")
        continue;
        if (empty($selection[$i]['noradio'])) {
 ?>
<?php echo zen_draw_radio_field('payment', $selection[$i]['id'], ($selection[$i]['id'] == $_SESSION['payment'] ? true : false), 'id="pmt-'.$selection[$i]['id'].'"'); ?>
<?php   } ?>
<?php
    } else {
    	
?>
<?php echo zen_draw_hidden_field('payment', $selection[$i]['id']); ?>
<?php
    }
?>

Are you saying to delete the line if (empty($selection[$i]['noradio'])) { even though it's part of ZC 1.3.7 template?

1 Mar 2007, 1:40 PM
#734
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)

BlessIsaacola:

I have installed and reinstalled everything. However, the google button is still not enabled on the site.

The message in response_error.log is: HTTP Basic Authentication failed. Can't retrive Merchant Id/Key, Installed over CGI??

If I set .htaccess Basic Authentication Mode to True instead of false, I am not able to activate the configuration file. Clicking on the link generates the following error: You don't have permission to access /myadminfolder/includes/htaccess.php on this server.

Please provide assistance with how to configure the .htaccess if it's need and where the file needs to be uploaded. Also, why does everything work fine for 1.0.4r but now it cannot connect to GC?

Thanks!

please, download this file
http://google-checkout-zencart.googlecode.com/svn/trunk/admin/htaccess.php

and put it under admin/

run it from there.

u should have perms

ropu

1 Mar 2007, 1:45 PM
#735
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)

BlessIsaacola:

This is what I have in mine:

<?php $radio_buttons = 0; for ($i=0, $n=sizeof($selection); $i<$n; $i++) { ?> <?php if (sizeof($selection) > 1) { if($selection[$i]['id'] == "googlecheckout") continue; if (empty($selection[$i]['noradio'])) { ?> <?php echo zen_draw_radio_field('payment', $selection[$i]['id'], ($selection[$i]['id'] == $_SESSION['payment'] ? true : false), 'id="pmt-'.$selection[$i]['id'].'"'); ?> <?php } ?> <?php } else { ?> <?php echo zen_draw_hidden_field('payment', $selection[$i]['id']); ?> <?php } ?>

No, that quote was for an other older release. it should be ok as you have it.

ropu
1 Mar 2007, 1:47 PM
#736
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)

jhaase83:

What file do I put the code for the google tracking code in? I am starting to get confused now.

im sorry jhaase, i cant fully understand your question.

ropu

1 Mar 2007, 2:29 PM
#737
jhaase83 avatar

jhaase83

New Zenner

Join Date:
Jan 2007
Location:
MO
Posts:
24
Plugin Contributions:
0

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

When I was getting my Google Analytics set up it wanted me to put a tracking code on every page in my web site I want it to track. And for the life of me right now I don't remember what file to put it under. Or do I even need to worry about that?

1 Mar 2007, 2:39 PM
#738
blessisaacola avatar

blessisaacola

Totally Zenned

Join Date:
Feb 2004
Location:
Georgia, USA
Posts:
1,875
Plugin Contributions:
1

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

ropu:

please, download this file
http://google-checkout-zencart.googlecode.com/svn/trunk/admin/htaccess.php

and put it under admin/

run it from there.

u should have perms

ropu

I am assuming that running that file should create 2 files in the googlecheckout folder? That did not happen. I have pasted below the result of running that file:

.htaccess file:
<<<Start---
AuthName "Google checkout Basic Authentication"
AuthType Basic
AuthUserFile /var/www/html/googlecheckout/.htpasswd
require valid-user
---End>>>

.htpasswd file:
<<<Start---
sandboxaccount(was here):JztdoYcegScMQ
productionaccount (was here):tb37Ly2XWynww
---End>>>

what does the bolded line about valid-user mean?

Also, is there a way to find out if PHP is install over CGI because I do not believe that's the case with mine. Do I need to comment out a block of code from responsehandler.php before running htaccess.php?

It would really help if there is a more straight forward approach to installing this mod.

Things like:

To check if your PHP is install over CGI do the following....
IF your PHP is install over CGI, perform the following steps in order...

Something simpler not all these try and error process. There has to be a consistent way of installing Google Checkout instead of all the work arounds for each person.

This is a great mod when it works! Thanks!

1 Mar 2007, 3:36 PM
#739
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)

BlessIsaacola:

I am assuming that running that file should create 2 files in the googlecheckout folder? That did not happen. I have pasted below the result of running that file:

.htaccess file:
<<<Start---
AuthName "Google checkout Basic Authentication"
AuthType Basic
AuthUserFile /var/www/html/googlecheckout/.htpasswd
require valid-user
---End>>>

.htpasswd file:
<<<Start---
sandboxaccount(was here):JztdoYcegScMQ
productionaccount (was here):tb37Ly2XWynww
---End>>>

what does the bolded line about valid-user mean?

Also, is there a way to find out if PHP is install over CGI because I do not believe that's the case with mine. Do I need to comment out a block of code from responsehandler.php before running htaccess.php?

It would really help if there is a more straight forward approach to installing this mod.

Things like:

To check if your PHP is install over CGI do the following....
IF your PHP is install over CGI, perform the following steps in order...

Something simpler not all these try and error process. There has to be a consistent way of installing Google Checkout instead of all the work arounds for each person.

This is a great mod when it works! Thanks!

yes, it supposed to create both files!

do you check the boxes "Check if dir exists:" and "Create Files:" ??
**the require valid-user **is a directive of htaccess that tells the browser to look for valid users in .htpasswd

you DONt have to comment any code in responsehandler.php just need to enable or disable this feature from the amin UI!

just set tru to this```html
.htaccess Basic Authentication Mode with PHP over CGI?
This configuration will disable PHP Basic Authentication in the responsehandler.php to validate Google Checkout messages.
If setted True you MUST configure your .htaccess files here.


and add the htaccess with the script. .

i take notes about an easier readme file. thanks for your feedback

ropu
1 Mar 2007, 3:44 PM
#740
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)

jhaase83:

When I was getting my Google Analytics set up it wanted me to put a tracking code on every page in my web site I want it to track. And for the life of me right now I don't remember what file to put it under. Or do I even need to worry about that?

if you want to track more pages of your site, you must add that JS code.

The feature i added automatically adds that code to all the pages where the Google Checkout Button appears, also add a feature that joins Google Analytics with Google Checkout. As the link says you must activate in google analytics the e-commerce compatibility.
http://code.google.com/apis/checkout/developer/checkout_analytics_integration.html#googleCheckoutAnalyticsIntegrationEnablingEcommerceReporting

no need to do anything else.

any doubts please ask me, ill add it to the docs. im trying to have better doc, but not to easy and i dont have plenty of time, sorry for that.

ropu