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 761 to 780 of 3,921
This thread is locked. New replies are disabled.
02 Mar 2007, 18:21
#762
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)

cheezylu:

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.

Today i've told that the the demo servers are ready to use. Now i must do the install and i'll let you know when they are online

ropu

02 Mar 2007, 21:43
#763
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)

ropu:

no no, you have to add the includes/templates/YOUR_TEMPLATE/template/ dir and its content (tpl_checkout_payment_default.php, tpl_login_default.php, tpl_shopping_cart_default.php) to your template dir

ropu

Ok. I already have all this so I went in and changed what it said to change in the files.

04 Mar 2007, 07:10
#764
eva01 avatar

eva01

New Zenner

Join Date:
Aug 2005
Posts:
30
Plugin Contributions:
0

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

I reinstalled everything, new Zen 1.3.7 and installed the new GCO 1.2 RC1. Doing sandbox, and put in correct merchant ID and Key. No errors on url/googlecheckout/responsehandler.php.

However, the GCO logo is nowhere. I'm trying to only use GCO, the only mention of it is on step 2/3 in the payment process where it says payment method. However, I go through the whole process, confirm order, it congratulates me and I'm done. But of course, never went to GCO so no order really happens. Any ideas?

04 Mar 2007, 07:26
#765
w00gle avatar

w00gle

New Zenner

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

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

That's a typical scenario when you try to setup googlecheckout as your ONLY method of payment. In my site, I hacked the confirmation page to not display the "Confirm Order" and put in its place the googlecheck (button) component. When the GCO button is pressed, it took my order (plus shipping+taxes) to Google's GoogleCheckout page. However, my order did not show up in my Admin/Orders section. 8-(

04 Mar 2007, 07:37
#766
eva01 avatar

eva01

New Zenner

Join Date:
Aug 2005
Posts:
30
Plugin Contributions:
0

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

I'm also getting this error when I check the logs:
Sun Mar 4 0:55:28 CST 2007:- HTTP Basic Authentication failed. Can't retrive Merchant Id/Key, Installed over CGI??

I'm guessing I'm making some really basic mistake, but I don't know what it is since I reinstalled everything and started from scratch step by step.

Is there really a problem if GCO is my only method of payment? My whole reason for doing this is to get away from Paypal.

04 Mar 2007, 07:41
#767
eva01 avatar

eva01

New Zenner

Join Date:
Aug 2005
Posts:
30
Plugin Contributions:
0

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

I'm also getting this error when I check the logs:
Sun Mar 4 0:55:28 CST 2007:- HTTP Basic Authentication failed. Can't retrive Merchant Id/Key, Installed over CGI??

I'm guessing I'm making some really basic mistake, but I don't know what it is since I reinstalled everything and started from scratch step by step.

Is there really a problem if GCO is my only method of payment? My whole reason for doing this is to get away from Paypal.

04 Mar 2007, 09:39
#768
w00gle avatar

w00gle

New Zenner

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

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

Eva,

Use Ropu's response handler test to find out whether your PHP is installed as a CGI script.

Modify the following lines:

// Responsehandler.php URL
$url = 'http://www.your-store.com/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!>';

Upload the modified file into your https://www.your-store.com/googlecheckout folder.

Then open your browser and point it to:
http://www.your-store.com/googlecheckout/responsehandler_test.php

Once executed, it'll return several environment variables. Find the text: [GATEWAY_INTERFACE] => and see what is the next texts after it. If it returns CGI/x.x then it means your PHP is run as a CGI script.

BTW, what version of Googlecheckout are you using?

04 Mar 2007, 19:32
#769
eva01 avatar

eva01

New Zenner

Join Date:
Aug 2005
Posts:
30
Plugin Contributions:
0

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

w00gle:

Eva,

Use Ropu's response handler test to find out whether your PHP is installed as a CGI script.

Modify the following lines:

// Responsehandler.php URL
$url = 'http://www.your-store.com/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!>';

> 
> 
> Upload the modified file into your <https://www.your-store.com/googlecheckout> folder.
> 
> Then open your browser and point it to:
> <http://www.your-store.com/googlecheckout/responsehandler_test.php>
> 
> Once executed, it'll return several environment variables.  Find the text: [GATEWAY_INTERFACE] =>  and see what is the next texts after it.  If it returns CGI/x.x then it means your PHP is run as a CGI script.  
> 
> BTW, what version of Googlecheckout are you using?

1.2RC1.
I don't know what I'm suppose to do for:
$postargs = '<xml replace!>';  

It says - You can take the ones from googlecheckout/response_message.log
But I have nothing listed in that log, it's empty.
05 Mar 2007, 12:24
#770
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)

BlessIsaacola:

Ropu,

On point #2, I checked our setting and all our shipping module are set to use the same Taxable Goods. My questions for you is doesn't the fact that Taxable Goods only apply to two zones (in our case) affects Google Checkout button to be disable.

For example we have shipping module configured with zone set to none (meaning people can checkout worldwide) but our Taxable Goods is only configured to charge taxes for customers from 2 states in the US where we have physical location. Does this confuse GC and that's why the button is greyed out?

In GC 1.0.4r we are only using table rate as shipping option but the taxable goods still only applies to 2 states and we have no problem (except that it actually ignore the tax rule and charges no tax for customers from the two states :().

Thanks!

Ropu,

any response to the above post? GCV1.2RC3 does not work when Taxable Good is enable. please read the above scenarios for recreating the rror.

Thanks!

05 Mar 2007, 13:48
#771
blumcafe avatar

blumcafe

New Zenner

Join Date:
Mar 2007
Posts:
21
Plugin Contributions:
0

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

I recently installed the google-checkout-zencart-v1.2RC3. When the cart is empty, I get the following error message at the bottom of my shopping cart page:

Fatal error: Cannot redeclare selfurl() (previously declared in /public_html/crm/shop/googlecheckout/gcheckout.php:38) in /public_html/crm/shop/googlecheckout/gcheckout.php on line 37

I looked up the selfurl string in developer's toolkit, but could not find it. Looking at the gcheckout.php I commented out the selfURL function call at line 37 and the curly bracket at line 42. See my change below. Will this change break my google checkout install? BTW, doing this removed the above error from that page. Now I can't get my checkout button to show up on the checkout page. I will go back and read up on the button issue since it appears there are some posts here related to that.

 
require_once('admin/includes/configure.php');
  require('includes/languages/' .  $_SESSION['language'] . '/' .'modules/payment/googlecheckout.php');
  require_once('includes/modules/payment/googlecheckout.php');
  //function selfURL() { 
    $s = empty($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on") ? "s" : ""; 
    $protocol = strleft(strtolower($_SERVER["SERVER_PROTOCOL"]), "/").$s; 
    $port = ($_SERVER["SERVER_PORT"] == "80") ? "" : (":".$_SERVER["SERVER_PORT"]); 
    return $protocol."://".$_SERVER['SERVER_NAME'].$port.$_SERVER['REQUEST_URI']; 
 // }

Thanks,
BlumCafe

05 Mar 2007, 15:42
#772
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)

blumcafe:

I recently installed the google-checkout-zencart-v1.2RC3. When the cart is empty, I get the following error message at the bottom of my shopping cart page:

Fatal error: Cannot redeclare selfurl() (previously declared in /public_html/crm/shop/googlecheckout/gcheckout.php:38) in /public_html/crm/shop/googlecheckout/gcheckout.php on line 37

I looked up the selfurl string in developer's toolkit, but could not find it. Looking at the gcheckout.php I commented out the selfURL function call at line 37 and the curly bracket at line 42. See my change below. Will this change break my google checkout install? BTW, doing this removed the above error from that page. Now I can't get my checkout button to show up on the checkout page. I will go back and read up on the button issue since it appears there are some posts here related to that.

require_once('admin/includes/configure.php');
require('includes/languages/' . $_SESSION['language'] . '/' .'modules/payment/googlecheckout.php');
require_once('includes/modules/payment/googlecheckout.php');
//function selfURL() {
$s = empty($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on") ? "s" : "";
$protocol = strleft(strtolower($_SERVER["SERVER_PROTOCOL"]), "/").$s;
$port = ($_SERVER["SERVER_PORT"] == "80") ? "" : (":".$_SERVER["SERVER_PORT"]);
return $protocol."://".$_SERVER['SERVER_NAME'].$port.$_SERVER['REQUEST_URI'];
// }

> **BlumCafe**
Blum
nono, thats an error, if you comment, you should comment the whole function, not just the declaration :P

if you do so, the body of it will be part of the script an alter the sequence of the program.


ropu
05 Mar 2007, 16:55
#773
alik avatar

alik

Zen Follower

Join Date:
Mar 2006
Posts:
126
Plugin Contributions:
0

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

I installed GC 1.2rc3 on my zc1.3.7 everything works with no errors, except the shipping rates, for some reson i cannot get the actual UPS, FedEx or USPS rates to shgow up on google checkout pages...

if i set prices in admin they will show, even those that i don't need or use so i have about 15 shipping methods to chose from but none are the acctual rates as on site.

is this something that hasn't been fixed or is it something i didn't install the right way?

05 Mar 2007, 16:58
#774
blumcafe avatar

blumcafe

New Zenner

Join Date:
Mar 2007
Posts:
21
Plugin Contributions:
0

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

ropu:

Blum
nono, thats an error, if you comment, you should comment the whole function, not just the declaration :P

if you do so, the body of it will be part of the script an alter the sequence of the program.

ropu
Ok. so I should comment out everything like so?

 
 
/* function selfURL() { 
    $s = empty($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on") ? "s" : ""; 
    $protocol = strleft(strtolower($_SERVER["SERVER_PROTOCOL"]), "/").$s; 
    $port = ($_SERVER["SERVER_PORT"] == "80") ? "" : (":".$_SERVER["SERVER_PORT"]); 
    return $protocol."://".$_SERVER['SERVER_NAME'].$port.$_SERVER['REQUEST_URI']; 
 // }
*/  

There is another reference to the selfURL further down in the code. Will doing this above affect that function call?

05 Mar 2007, 17:02
#775
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:

Ropu,

any response to the above post? GCV1.2RC3 does not work when Taxable Good is enable. please read the above scenarios for recreating the rror.

Thanks!

Bless, thanks for your feedback, i think i found the bug

I was using a different way to find out If there are multiple shipping options selected and they use different shipping tax tables or some dont use tax tables.

I was comparing count(DV) instead of count(shipping providers), its a bug from the time i added Merchant calculations.

Thanks again.

change this in googlecheckout/gcheckout.php line 431

  if(sizeof($tax_class_unique) == 1  && 
      sizeof($options) == sizeof($tax_class)) {
```for

```php
  if(sizeof($tax_class_unique) == 1  && 
       sizeof($module_info) == sizeof($tax_class)) {
 

and

change this in googlecheckout/gcheckout.php line 469

  if(sizeof($tax_class_unique) > 1 || 
    (sizeof($tax_class_unique) == 1 && 
     sizeof($options) != sizeof($tax_class) ))  {
    $googlepayment->variant = "disabled";    
    $current_checkout_url = selfURL();
  }
```for 


```php
  if(sizeof($tax_class_unique) > 1 || 
    (sizeof($tax_class_unique) == 1 && 
     sizeof($module_info) != sizeof($tax_class) ))  {
    $googlepayment->variant = "disabled";    
    $current_checkout_url = selfURL();
  }
```im updating the SVN, and later the RC

and issa, please tell us if this worked for you.


ropu
05 Mar 2007, 17:12
#776
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)

Alik:

I installed GC 1.2rc3 on my zc1.3.7 everything works with no errors, except the shipping rates, for some reson i cannot get the actual UPS, FedEx or USPS rates to shgow up on google checkout pages...

if i set prices in admin they will show, even those that i don't need or use so i have about 15 shipping methods to chose from but none are the acctual rates as on site.

is this something that hasn't been fixed or is it something i didn't install the right way?

Hi alik

that is the time out issue that is not completely solved. Not any install error, try using the Multisocket feature, You can set it from the Admin UI.

ropu

05 Mar 2007, 17:15
#777
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)

blumcafe:

Ok. so I should comment out everything like so?

/* function selfURL() {
$s = empty($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on") ? "s" : "";
$protocol = strleft(strtolower($_SERVER["SERVER_PROTOCOL"]), "/").$s;
$port = ($_SERVER["SERVER_PORT"] == "80") ? "" : (":".$_SERVER["SERVER_PORT"]);
return $protocol."://".$_SERVER['SERVER_NAME'].$port.$_SERVER['REQUEST_URI'];
// }
*/


yes it should, but i can tell you way, that function is already declared. i think your installation is mixed or not fully v1.2. Or you have a other contribution with the same function name.

im adding to the TODO list, 
- add "gc_" to all GC internal functionsropu
05 Mar 2007, 18:00
#778
blumcafe avatar

blumcafe

New Zenner

Join Date:
Mar 2007
Posts:
21
Plugin Contributions:
0

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

ropu:

yes it should, but i can tell you way, that function is already declared. i think your installation is mixed or not fully v1.2. Or you have a other contribution with the same function name.

im adding to the TODO list,

  • add "gc_" to all GC internal functionsropu
    Ropu,
    Not sure I understand. I had 1.0.4r installed before. I reversed modifications by 1.0.4r before I installed 1.2RC3. I guess I can go back through the install docs for 1.2RC3 to make sure everything is ok. Also, I have seen mention here of a GC 1.5. What is that? Is it another checkout module version for GC? If so, where is it located? I want to make sure I am using most up to date version.
    Thanks
05 Mar 2007, 18:03
#779
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)

jhaase83:

Ok. I already have all this so I went in and changed what it said to change in the files.

This did not make since sorry.

What I meant. I have the folders you where taling about already. I went into them and changed what the instructions said to change. DO I need to just replace them all. I think they are there for Paypal. Which I am not going to use. Unless I just can not get this to work at all.

05 Mar 2007, 18:36
#780
alik avatar

alik

Zen Follower

Join Date:
Mar 2006
Posts:
126
Plugin Contributions:
0

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

ropu:

Hi alik

that is the time out issue that is not completely solved. Not any install error, try using the Multisocket feature, You can set it from the Admin UI.

ropu

did the above and now i get a message on GC Sandbox page > "My_Store Does not ship to this address"
tried a few diff. addresses non work.

-did i miss anything else ?