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

Results 1,241 to 1,260 of 3,921
This thread is locked. New replies are disabled.
20 Apr 2007, 5:16 AM
#1241
weddingpearls avatar

weddingpearls

New Zenner

Join Date:
Apr 2007
Location:
United States, Utah
Posts:
13
Plugin Contributions:
0

Google Checkout module for ZC 1.3.x (beta)

I can't get this module to work.

Anyone out there who is willing to help me do this?

20 Apr 2007, 7:55 AM
#1242
jwball avatar

jwball

New Zenner

Join Date:
Apr 2007
Posts:
17
Plugin Contributions:
0

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

Woodymon:

Did you submit an order again after making the adjustments recommended above? Callback Method should be XML (not HTML).

Woody

Yes the callback method is set to xml. I cannot understand what I'm doing wrong.

20 Apr 2007, 8:27 AM
#1243
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)

Unfortunately, we are going to have to go back to 1.0.4r because this version of Google Checkout is just NOT worthy of production environment. The merchant calculation is absolutely worthless because it works about 30% of the time (even when stripped down).

Another issue with Merchant calculation is if you disable some shipping option in googlecheckout to speed things up like UPS then you can no longer have UPS as an option on the regular Zen Cart side because it generates and error.

It's really too bad!

20 Apr 2007, 9:12 AM
#1244
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)

When I tried to update customer order in Zen Cart this is the error I received: Error 400: Bad request. The parameters passed to the service did not match as expected. The exact error is returned in the XML response.

20 Apr 2007, 9:17 AM
#1245
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)

mgraphic:

I finally did figure out the mismatch between the google status and ZC status. Have everything working now!

Can you please post how and what you did? Thanks!

20 Apr 2007, 6:34 PM
#1246
intref avatar

intref

New Zenner

Join Date:
Apr 2007
Posts:
35
Plugin Contributions:
0

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

From another thread I came to know that GooGle Checkout option is not available on Page 2 of regular Checkout. Does this mean that once a customer logs into my site then they cannot use Google Checkout?

Also, I had to add code in the tpl_login_default.php for adding the Google Checkout button if the split login is enabled. Paypal Express Checkout button was visible on that page but Google wasn't.

20 Apr 2007, 6:46 PM
#1247
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)

intref:

From another thread I came to know that GooGle Checkout option is not available on Page 2 of regular Checkout. Does this mean that once a customer logs into my site then they cannot use Google Checkout?

They still can. They just don't use Zen Cart checkout process. They either checkout using the GC icon on the shopping cart page or the login page.

intref:

Also, I had to add code in the tpl_login_default.php for adding the Google Checkout button if the split login is enabled. Paypal Express Checkout button was visible on that page but Google wasn't.

Yes the login template delivered with the GC mod does not support split login. but it is very easy to customize. Just compare the default ZC 1.37 login template file with the version delivered with the mod. You will see the small snippet of GC code that needs to be copied into the split login code area further above. I placed the code snippet below the create new ZC account, PPEC login and the existing ZC account login area.

I will provide my edited login template file to ropu so maybe he can include in the next version of the mod.

Woody

20 Apr 2007, 10:27 PM
#1248
freerangepc avatar

freerangepc

New Zenner

Join Date:
Apr 2006
Posts:
65
Plugin Contributions:
0

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

I have faffed about with this for ages and I changed an edit orders mod in the orders.php for the details button and put it back to edit button and now I can see all my details coming up in Admin including all the google checkout messages :)

If I change the edit orders back to how it was it all dissapears! So there is some conflict somewhere but I have no idea how to solve it, I have tried for days to get it to work!

Now I have changed it back I can't get my tax details showing on the invoices GRRRRRRRR, now that was working before too!

21 Apr 2007, 6:42 AM
#1249
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)

freerangepc:

I have faffed about with this for ages and I changed an edit orders mod in the orders.php for the details button and put it back to edit button and now I can see all my details coming up in Admin including all the google checkout messages :)

If I change the edit orders back to how it was it all dissapears! So there is some conflict somewhere but I have no idea how to solve it, I have tried for days to get it to work!

When using any other mods that touch the same core files you will need to merge in the appropriate code. Sounds as /admin/orders.php is the common file here.

Wish I could help but I don't use Edit Orders.

And I doubt you will find too many folks right now running Edit Orders at the same time as Google Checkout mod, since GC is still beta. Just testing with standard Zen Cart install is the immediate focus.

Woody

21 Apr 2007, 1:16 PM
#1250
intref avatar

intref

New Zenner

Join Date:
Apr 2007
Posts:
35
Plugin Contributions:
0

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

Did anyone get a solution for the following time out error:

"We timed out waiting for your server at <web address here> -- the error we got is: Read timed out Your server must respond faster to merchant calculation callback requests"

21 Apr 2007, 2:04 PM
#1251
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)

Hi ropu-

This question relates to a workaround to the current lack support for instant downloads. Regards to the script you provided to test if a product is a virtual product, and if it is then print a warning message on the product description page.

I can see your code works fine on the login and shopping cart pages. That is, when a non-physical product is added to the shopping cart, then a message "Some download products in your cart are currently not available via Google Checkout" displays below the disabled Google Checkout button.

Have you had an opportunity to test the code you provided on tpl_product_info_display.php?

Unfortunately I cannot get it to work. It appears the script is tied to the contents of the shopping cart session? (e.g. ['cart']) which does not apply to what I'm attempting to do. I've attempted to adapt your code for my described purpose but so far have been unsuccessful.

Here again is what I'm trying to do:

  1. View product_info_display page for a specific product.
  2. Display a warning message if product is a download product.

I see three files are of concern here:

  1. a template file (tpl_product_info_display.php) which calls an include;
  2. an include which first loads application_top;
  3. a class file with a function;

And the 'products' table contains two relevant columns: 'products_id' and 'products_virtual'

So I created my own includes and class files below. But I'm havnig some issues as described below. Could you please take a look to see if the ideas should work.

The function gets the value of 'products_virtual' for a specific 'products_id'. If it contains a "1" then "virtual" should be returned. Otherwise return "physical".

I think my problem is passing the 'products_id' (for the product description page which is currently displayed) from the template file to the includes file and to the class/function. And then how do I return the value evaluated by the class/function file back to the includes and template files?

  1. Template: /includes/templates/MY_TEMPLATE/templates/tpl_product_info_display.php
    Insert this code snippet somewhere:
<?php
include('download_type_include_for_gc.php');

$download_type = $_GET['products_id']->get_download_type(); 

if ( MODULE_PAYMENT_GOOGLECHECKOUT_VIRTUAL_GOODS == 'True' && $download_type != 'physical' ) {
    echo '<p class="productGeneral">This download product is currently not available via Google Checkout. However it is available through regular shopping cart checkout.</p><br />';
      }
?>
  1. Includes: file /download_type_include_for_gc.php
<?php
/*
 * download_type_include_for_gc.php
 * to display download_type on product description pages for Google Checkout
 *
 */

include_once('includes/application_top.php');
//print_r($_GET['products_id']->get_download_type());

?>
  1. Class/function: /includes/classes/get_download_type.php
<?php
/**
 * get_download_type.php class
 */

class get_download_type {

	function get_download_type() {
		global $db;
	
		$download_check = $db->Execute("select products_virtual 
					from " . TABLE_PRODUCTS . " 
					where products_id = '" . zen_get_prid($products_id) . "'");
	
		if ($download_check->fields['products_virtual'] == '1') {
			$this->download_type = 'virtual';
                } else {
			$this->download_type = 'physical';
			} 
	
		return $this->download_type;
	}
}
?>

However the product description page stops rendering when arriving at the template snippet code above.
Error in error log is:

[error] [error] PHP Fatal error: Call to a member function get_download_type() on a non-object in /home/MY_ACCOUNT/public_html/MY_SHOP/includes/templates/MY_TEMPLATE/templates/tpl_product_info_display.php on line 134

What to I do to make it "unknown"? Do I have to register the class file or something special? Or do I put the class file in a special directory?

Or is there something wrng with this:

$_GET['products_id']->get_download_type()

Am I getting close or am I completely off on a wrong roller coaster track?

Thanks for any pointers,
Woody

23 Apr 2007, 1:44 PM
#1252
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)

delia:

thanks for such a quick reply - I spent several hours going thru the install and the forums trying to find out what was going on.

I think all mods need a thorough description in the read me - something I'll remember when I get time to package mine!

Hi delia

here is the introduction of the module in the README

INTRODUCTION

The Google Checkout module for Zen Cart adds Google Checkout as a Checkout
Module within Zen Cart.
This will allow merchants using Zen Cart to offer Google Checkout as an
alternate checkout method.

Please send me some feedback about how to improve it, as a coder sometimes i assume things that merchants dont know.

thx in advance,

ropu

23 Apr 2007, 1:48 PM
#1253
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,

I am still getting this error when I use you tool to test responsehandler but I do not get the same error when I enter the url directly on our site for responsehandler.php

SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:func(144):reason(134)

Please use the HTTP address of ur site and NOT the HTTPS

ropu

23 Apr 2007, 1:54 PM
#1254
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

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

first change alternate to alternative (picky, I know but it's better).

Next line, then specify what you mean:

"The mod places a button on the login page and in the cart so that the customer can bypass the rest of the zencart checkout and use google checkout instead. Googlecheckout will be listed on the payments page but there is no way to use it then if one goes through the entire checkout procedure."

I know that probably most folks wanting to install this will have more knowledge of googlecheckout than I. I was hired to install the mod into someone's cart and kept thinking I didn't have it installed right or it was missing something since there was no way on the payments page to select it. My customer was wanting it to be the only way to checkout of the cart.

Now I can certainly change a zencart so that the customer can't go thru the rest of the checkout but it was an unpleasant surprise and a massive waste of time. Should I have researched it first? Sure - but this forum thread is just way too long and I couldn't fine any answer to my question anywhere. I think it's time to start a new thread or several threads from this one!

Thanks for all the work, by the way!

23 Apr 2007, 1:56 PM
#1255
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)

Woodymon:

Hi ropu-

Finally had an opportunity to test your new 1.3RC2 version. Below are some questions, comments and requests for the wishlist.

  1. Shipping config is funny. For instance when purchasing a regular book the "review and place order" page listed two options in the Shipping & Handling dropdown:

"S&H Free Shipping (USA) ($0.00)"
"S&H (USA): USPS Media Mail ($5.00)"

I employ free shipping only on few items but not the item I was ordering. Why does the Free Shipper appear in the drop down for products which are not set for free shipping?

Here are my two arrays in /includes/modules/payment/googlecheckout.php

$this->mc_shipping_methods = array(
'freeshipper' => array(
'domestic_types' =>
array(
'freeshipper' => 'Free Shipping (USA)'
),

                                'international_types' =>
                                  array(
                                      'freeshipper' => 'Free Shipping (Intl)'
                                       ),
                                    ),
                    'itemnational' => array(
                                'domestic_types' =>
                                  array(
                                      'itemnational' => 'USPS Media Mail',

                                       ),

                                'international_types' =>
                                  array(

                                       ),
                                    ),
                    'iteminternational' => array(
                                'domestic_types' =>
                                  array(

                                       ),

                                'international_types' =>
                                  array(
                                      'iteminternational' => 'USPS Air Mail',

                                       ),
                                    ),
                              );

$this->mc_shipping_methods_names = array(    
                                     'freeshipper' => 'S&H',
                                     'itemnational' => 'S&H (USA)',
                                     'iteminternational' => 'S&H (Intl)',
                                    );    
> 
> 3. Can something be done to delay the display of the "Place your order now" button, at least until the shipping dropdown menu and the pay with and ship to info is fully displayed and the grand total is updated to include shipping. 
> 
> This is a serious flaw. The wait between the order button rendering and the shipping drop down and other ship info appearing can be fifteen seconds and more. I suspect many customers will be clicking the order BUTTON before they should be (before shipping is added to the total) and will be confused. I know I would be (or I am).
> 
> Better yet if a "Still Loading..." could be displayed until the ship info is updated. Then display the Order button.
> 
> 4. In the payment module configuration I changed the URL for the page to return to after checkout, to be the shop home page URL. However after clicking the place order button I still see Google's "Thanks yourname you're done" page. And the "Return to" link still points to the shopping cart page. Am I missing something?
> 
> OK I see now, rather than entering a proper URL, I changed the entry to "index" and the link then pointed to the shop home page. Stating "URL" in the instructions is not really correct but I understand it's difficult to come up with the correct  term... maybe just provide a couple examples, e.g. for shop home page = index). 
> 
> Relatedly, be sure to state in the readme that the return page cannot be the Zen Cart checkout_success page or any other Zen Cart page that requires you to be logged in.
> 
> 5. How about dynamically creating and displaying a secure special one-time only "google_checkout_success" page which would display when customer is returned from Google Checkout server back to the Zen Cart shop. Include on that page the Google Checkout order details, the Zen Cart order number and the Zen Cart password (which the Google Checkout mod created for the customer), and include a link to "My Account" (similar to what is displayed on Zen Cart Checkout success page). And include on the page a define where shop-owner could include custom text (e.g. further instructions, etc) to the shops customers. Maybe call the page "google-checkout_success".
> 
> 6. It would be good if customer could include some "comments" within the order 9directed to shop-owner), then display the comments in the order confirmation emails and in the zen cart admin orders page.
> 
> 7. How about the option of placing a small shop-owner logo on the Google checkout "review and place order" page along with Google Checkout logo. 
> 
> Thank you for the mod update and your assistance,
> Woody
Woody
hi

im forwarding this post too google

Thx again for ur suggestions.

please also note this page. Is intended to work as a features suggestion

<http://groups.google.com/group/google-checkout-developers-forum/web/new-feature-suggestions-for-google-checkout>
ropu
23 Apr 2007, 2:36 PM
#1256
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:

Can you please post how and what you did? Thanks!

Have a look to the README for the state change mapping

View your Google Checkout customers and their orders in the Reports tab.
For each order, the default starting state is PENDING.
The state changes to PROCESSING and DELIVERED as follows; corresponding
messages will be sent out to the Checkout server for order processing.

| Original State | New State | Action | Customer Notification |
| PENDING | PROCESSING | charging the order | Processing order message |
| PROCESSING | DELIVERED | marking the order for delivery | Shipped order message |

You can add a Tracking Number in the state change from PROCESSING to DELIVERED.
A text field and a combo with the shipping providers will be show when the order
is in the PROCESSING state.

Any comments added during state change will be sent to the buyer account page
if you have selected the Append Comments option.

ropu

23 Apr 2007, 2:37 PM
#1257
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)

jwball:

If I complete a transaction through my sandbox account should it come back to my zencart database as an order?
yes i does...
jwball:

I have answered my question above, after logging into the sandbox account I'm getting the following integration issue

" We encountered an error trying to access your server at https://www.(MYSERVER).com/shop/googlecheckout/responsehandler.php; the error we got is: Sending failed with HTTP response code: 503. Response body was: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <TITLE>ERROR: The requested URL could not be retrieved</TITLE> <STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE> </HEAD><BODY> <H1>ERROR</H1> <H2>The requested URL could not be retrieved</H2> <HR noshade size="1px"> <P> While trying to retrieve the URL: <A HREF="www.(MYSERVER).com:443">www.(MYSERVER).com:443</A> <P> The following error was encountered: <UL> <LI> <STRONG> Connection Failed </STRONG> </UL> <P> The system returned: <PRE><I> (110) Connection timed out</I></PRE> <P> The remote host or network may be down. Please try the request again. <P>Your cache administrator is <A HREF="mailto:admin">admin</A>. <BR clear="all"> <HR noshade size="1px"> <ADDRESS> Generated Thu, 19 Apr 2007 23:13:36 GMT by proxy.google.com (squid) </ADDRESS> </BODY></HTML> Warnings:
double check that the Merchant Callback URL in the integration section is correct

ropu

23 Apr 2007, 2:39 PM
#1258
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)

jtleon:

i didnt use the response handler script but i run phpinfo()
and what i got from GATEWAY INTERFACE is CGI/1.1

is that means my php is configured as CGI?
but i did configure it as apache module, as in httpd file
i set them as below
LoadModule php5_module "C:\Program Files\PHP\php5apache2_2.dll"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4

im using latest google checkout and zen-cart and got the same error as eva in the responsehandler error file,
HTTP Basic Authentication failed. Can't retrive Merchant Id/Key, Installed over CGI??

I cant find how eva solved it.....sorry if the answer is already here in this thread.

U must enable the .htaccess feature in the Admin UI->modules->payment->google checkout, and then create the .htaccess files to protect the directory

ropu

23 Apr 2007, 2:39 PM
#1259
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)

fats1964:

I have installed the Google Checkout and had my bank account authorised, but the Google logo is greyed out and not accessible.

It says

"not available for these items"

Am I doing something wrong and will Google charge everything including delivery without additional setup

Regards

Richard:mellow:

hi

double check this

  • A disabled button is displayed in the following cases:
    1. If merchant id or merchant key is not set
    1. If there are multiple shipping options selected and they use different
  • shipping tax tables or some dont use tax tables

ropu

23 Apr 2007, 3:32 PM
#1260
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:

Woody
hi

im forwarding this post too google

Thx again for ur suggestions.

please also note this page. Is intended to work as a features suggestion

http://groups.google.com/group/google-checkout-developers-forum/web/new-feature-suggestions-for-google-checkout
ropu

ropu-

You completely forgot to respond to my #1 question in the post regarding free shipping showing up when it should not be.

If you are not able to help me resolve that issue then I cannot use the mod or Google Checkout.

Others have recently posted to this thread shipping and tax issues which have not yet been responded to!

Also regards to posting wishlist items to this thread vs posting on the Google support site it is difficult to presume if the issues I observe and features I recommend are specifically relevant to the mod or they apply to Google Checkout service in general. I guess your copying to the Google forum indicates that ALL the issues I have brought to your attention have nothing to do with the programming of the mod? That is difficult to comprehend.

I would think the Google Checkout Product managers should be checking out this thread for ideas and unresolved issues.

When you say "ur" do you mean "your" ?

Thanks for your soonest response,
Woody