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

Results 3,161 to 3,180 of 3,921
This thread is locked. New replies are disabled.
24 Jul 2009, 7:24 PM
#3161
jbarrick avatar

jbarrick

Zen Follower

Join Date:
Aug 2008
Posts:
218
Plugin Contributions:
0

Google Checkout module for ZC 1.3.x (beta)

Here is my shipping_methods.php

<?php
/*
 **GOOGLE CHECKOUT ** v1.4.7
 * @version $Id: shipping_methods.php 5852 2007-12-14 14:58:57Z ropu $
 * 
 */
  // this are all the available methods for each shipping provider, 
  // see that you must set flat methods too!
  // CONSTRAINT: Method's names MUST be UNIQUE
  // Script to create new shipping methods
  // http://demo.globant.com/~brovagnati/tools -> Shipping Method Generator

$mc_shipping_methods = array(
                        'perweightunit' => array(
                                    'domestic_types' =>
                                      array(
                                          'perweightunit' => ' ',

                                           ),

                                    'international_types' =>
                                      array(
                                          'perweightunit' => ' _1',

                                           ),
                                        ),
                                  );

$mc_shipping_methods_names = array(
                                         'perweightunit' => 'Shipping & Handling',
                                        );
?>

What do I need to do to get Google to take shipping costs?

24 Jul 2009, 9:43 PM
#3162
jbarrick avatar

jbarrick

Zen Follower

Join Date:
Aug 2008
Posts:
218
Plugin Contributions:
0

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

I finally got Per Unit perweight to work with Google Checkout.

I went to ADMIN > MODULES > PAYMENT > GOOGLE CHECKOUT > EDIT >

Default Values for Real Time Shipping Rates
Default values for real time rates in case the webservice call fails.
Set Default Value to 0 to disable the method
Shipping Generator

clicked on the link

generated the code

and pasted that to the bottom of my shipping_methods.php file in the googlecheckout folder to end up with code that looks like this

<?php
/*
 **GOOGLE CHECKOUT ** v1.4.7
 * @version $Id: shipping_methods.php 5852 2007-12-14 14:58:57Z ropu $
 * 
 */
  // this are all the available methods for each shipping provider, 
  // see that you must set flat methods too!
  // CONSTRAINT: Method's names MUST be UNIQUE
  // Script to create new shipping methods
  // http://demo.globant.com/~brovagnati/tools -> Shipping Method Generator
 
  $mc_shipping_methods = array(
                        'usps' => array(
                                    'domestic_types' =>
                                      array(
                                          'EXPRESS' => 'Express Mail',
                                          'FIRST CLASS' => 'First-Class Mail',
                                          'PRIORITY' => 'Priority Mail',
                                          'PARCEL' => 'Parcel Post',
                                          'BPM' => 'Bound Printed Material',
                                          'LIBRARY' => 'Library'
                                           ),
                                    'international_types' =>
                                      array(
                                          'Global Express Guaranteed' => 'Global Express Guaranteed (1 - 3 days)',
                                          'Global Express Guaranteed Non-Document Rectangular' => 'Global Express Guaranteed Non-Document Rectangular (1 - 3 days)',
                                          'Global Express Guaranteed Non-Document Non-Rectangular' => 'Global Express Guaranteed Non-Document Non-Rectangular (1 - 3 days)',
                                          'Express Mail International (EMS)' => 'Express Mail International (EMS) (3 - 5 days)',
                                          'Express Mail International (EMS) Flat Rate Envelope' => 'Express Mail International (EMS) Flat Rate Envelope (3 - 5 days)',
                                          'Priority Mail International' => 'Priority Mail International (6 - 10 days)',
                                          'Priority Mail International Flat Rate Box' => 'Priority Mail International Flat Rate Box (6 - 10 days)',
                                          'Priority Mail International Flat Rate Envelope' => 'Priority Mail International Flat Rate Envelope',
                                          'First-Class Mail International' => 'First-Class Mail International',
                                          
                                          ),                                        
                                        ),

                        'fedexexpress' => array(
                                    'domestic_types' =>
                                      array(
                                          '06' => 'FedEx First Overnight',
                                          '01' => 'FedEx Priority Overnight',
                                          '05' => 'FedEx Standard Overnight',
                                          '03' => 'FedEx 2Day',
                                          '20' => 'FedEx Express Saver',

                                           ),

                                    'international_types' =>
                                      array(
                                          '01' => 'FedEx International Priority',
                                          '03' => 'FedEx International Economy',

                                           ),
                                        ),
                        'fedexground' => array(
                                    'domestic_types' =>
                                      array(
                                          '90' => 'FedEx Home Delivery',

                                           ),

                                    'international_types' =>
                                      array(

                                           ),
                                        ),
                        'fedex1' => array(
                                    'domestic_types' =>
                                      array(
                                          '01' => 'Priority (by 10:30AM, later for rural)',
                                          '03' => '2 Day Air',
                                          '05' => 'Standard Overnight (by 3PM, later for rural)',
                                          '06' => 'First Overnight',
                                          '20' => 'Express Saver (3 Day)',
                                          '90' => 'Home Delivery',
                                          '92' => 'Ground Service'
                                           ),

                                    'international_types' =>
                                      array(
                                          '01' => 'International Priority (1-3 Days)',
                                          '03' => 'International Economy (4-5 Days)',
                                          '06' => 'International First',
                                          '90' => 'International Home Delivery',
                                          '92' => 'International Ground Service'
                                           ),
                                        ),
                        'ups' => array(
                                    'domestic_types' =>
                                      array(
                                          '1DM' => 'Next Day Air Early AM',
                                          '1DML' => 'Next Day Air Early AM Letter',
                                          '1DA' => 'Next Day Air',
                                          '1DAL' => 'Next Day Air Letter',
                                          '1DAPI' => 'Next Day Air Intra (Puerto Rico)',
                                          '1DP' => 'Next Day Air Saver',
                                          '1DPL' => 'Next Day Air Saver Letter',
                                          '2DM' => '2nd Day Air AM',
                                          '2DML' => '2nd Day Air AM Letter',
                                          '2DA' => '2nd Day Air',
                                          '2DAL' => '2nd Day Air Letter',
                                          '3DS' => '3 Day Select',
                                          'GND' => 'Ground',
                                          'GNDCOM' => 'Ground Commercial',
                                          'GNDRES' => 'Ground Residential',
                                          'STD' => 'Canada Standard',
                                          'XPR' => 'Worldwide Express',
                                          'XPRL' => 'worldwide Express Letter',
                                          'XDM' => 'Worldwide Express Plus',
                                          'XDML' => 'Worldwide Express Plus Letter',
                                          'XPD' => 'Worldwide Expedited'
                                           ),

                                    'international_types' =>
                                      array(

                                           ),
                                        ),
                        'zones' => array(
                                    'domestic_types' =>
                                      array(
                                          'zones' => 'Zones Rates'
                                           ),

                                    'international_types' =>
                                      array(
                                          'zones' => 'Zones Rates intl'
                                           ),
                                        ),
                        'freeoptions' => array(
                                    'domestic_types' =>
                                      array(
                                          'freeoptions' => 'Free Options'
                                           ),

                                    'international_types' =>
                                      array(
                                          'freeoptions' => 'Free Options intl'
                                           ),
                                        ),
                        'freeshipper' => array(
                                    'domestic_types' =>
                                      array(
                                          'freeshipper' => 'Free Shipper'
                                           ),

                                    'international_types' =>
                                      array(
                                          'freeshipper' => 'Free Shipper intl'
                                           ),
                                        ),
                        'perweightunit' => array(
                                    'domestic_types' =>
                                      array(
                                          'perweightunit' => 'Perweight Unit'
                                           ),

                                    'international_types' =>
                                      array(
                                          'perweightunit' => 'Perweight Unit intl'
                                           ),
                                        ),
                        'storepickup' => array(
                                    'domestic_types' =>
                                      array(
                                          'storepickup' => 'Store Pickup'
                                           ),

                                    'international_types' =>
                                      array(
                                          'storepickup' => 'Store Pickup intl'
                                           ),
                                        ),
                        'flat' => array(
                                    'domestic_types' =>
                                      array(
                                          'flat' => 'Flat Rate Per Order'
                                           ),

                                    'international_types' =>
                                      array(
                                          'flat' => 'Flat Rate Per Order intl'
                                           ),
                                        ),
                        'item' => array(
                                    'domestic_types' =>
                                      array(
                                          'item' => 'Flat Rate Per Item'
                                           ),

                                    'international_types' =>
                                      array(
                                          'item' => 'Flat Rate Per Item intl'
                                           ),
                                        ),
                        'table' => array(
                                    'domestic_types' =>
                                      array(
                                          'table' => 'Vary by Weight/Price'
                                           ),

                                    'international_types' =>
                                      array(
                                          'table' => 'Vary by Weight/Price intl'
                                           ),
                                        ),
                        'itemnational' => array(
                                    'domestic_types' =>
                                      array(
                                          'itemnational' => 'Item National',

                                           ),

                                    'international_types' =>
                                      array(

                                           ),
                                        ),
                        'bodykits' => array(
                                    'domestic_types' =>
                                      array(
                                          'bodykits' => 'National',

                                           ),

                                    'international_types' =>
                                      array(
                                           'bodykits' => 'International',
                                           ),
                                        ),
                        'iteminternational' => array(
                                    'domestic_types' =>
                                      array(

                                           ),

                                    'international_types' =>
                                      array(
                                          'iteminternational' => 'Item International',

                                           ),
                                        ),                                        
                                  );

  $mc_shipping_methods_names = array( 
                                         'usps' => 'USPS',
                                         'fedex1' => 'FedEx',
                                         'ups' => 'UPS',
                                         'zones' => 'Zones',
                                         'fedexexpress' => 'Fedex Express',
                                         'fedexground' => 'Fedex Ground',
                                         'freeoptions' => 'Free Options',
                                         'freeshipper' => 'Free Shipper',
                                         'perweightunit' => 'Perweight Unit',
                                         'storepickup' => 'Store Pickup',
                                         'flat' => 'Flat Rate',
                                         'item' => 'Item',
                                         'table' => 'Table',
                                         'itemnational' => 'Per Item National',
                                         'iteminternational' => 'Per Item International',
                                         'bodykits' => 'Zoned Flate Rate for Product Classes',
                                        );  
?>
<?php
/**
  * File: googlecheckout/shipping_methods.php file
  */ 
$mc_shipping_methods = array(
                        'perweightunit' => array(
                                    'domestic_types' =>
                                      array(
                                          'perweightunit' => ' ',

                                           ),

                                    'international_types' =>
                                      array(
                                          'perweightunit' => ' _1',

                                           ),
                                        ),
                                  );

$mc_shipping_methods_names = array(
                                         'perweightunit' => 'Shipping & Handling',
                                        );
?> 
25 Jul 2009, 12:13 AM
#3163
stlnyc avatar

stlnyc

Zen Follower

Join Date:
Oct 2008
Posts:
179
Plugin Contributions:
0

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

Just installed the mod and it works great, but I was unaware that orders do not show in ZC admin. At least when users use PayPal, the order status can be updated from ZC. Is there a way of changing this?

25 Jul 2009, 2:27 AM
#3164
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)

stlnyc:

Just installed the mod and it works great, but I was unaware that orders do not show in ZC admin. At least when users use PayPal, the order status can be updated from ZC. Is there a way of changing this?

If the GC orders are not showing up in ZC admin, something is very wrong. Check your GC integration console for error messages.

25 Jul 2009, 2:31 AM
#3165
chain_man avatar

chain_man

Zen Follower

Join Date:
Dec 2005
Location:
Box Elder, SD
Posts:
375
Plugin Contributions:
0

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

stlnyc:

Just installed the mod and it works great, but I was unaware that orders do not show in ZC admin. At least when users use PayPal, the order status can be updated from ZC. Is there a way of changing this?

Have you set your callback url in your googlecheckout account to https://www.hillsideliquors.com/googlecheckout/responsehandler.php ?

And set the callback type to XML?

If those are already set, check the logs in your googlecheckout account under Tools->Integration Console. The logs should give an idea of any problems.

25 Jul 2009, 3:51 AM
#3166
stlnyc avatar

stlnyc

Zen Follower

Join Date:
Oct 2008
Posts:
179
Plugin Contributions:
0

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

chain_man:

Have you set your callback url in your googlecheckout account to https://www.hillsideliquors.com/googlecheckout/responsehandler.php ?

And set the callback type to XML?

If those are already set, check the logs in your googlecheckout account under Tools->Integration Console. The logs should give an idea of any problems.

Thanks Doug. Thats what I was missing.

29 Jul 2009, 1:45 AM
#3167
bhuntsman avatar

bhuntsman

New Zenner

Join Date:
Mar 2005
Location:
Miami, FL
Posts:
29
Plugin Contributions:
0

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

Has anyone successfully integrated Google Checkout with Super Orders? I'm currently installing ZC 1.3.8a and Super Orders to upgrade my site, but when I went to integrate Google Checkout I found that Super Orders had substantially changed admin/orders.php to the point where I'm not sure exactly what to replace...if anyone has successfully integrated the two, I would greatly appreciate knowing where you inserted the GC code into the Super Orders modified admin/orders.php file.

1 Aug 2009, 5:20 AM
#3168
webskipper avatar

webskipper

Totally Zenned

Join Date:
Nov 2007
Location:
USA
Posts:
876
Plugin Contributions:
2

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

kiddo:

No real resolution to the above post, but moved to a ZC certified host and no more problems.

Coolies!

What is different than the module?

1 Aug 2009, 8:27 AM
#3169
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)

webskipper:

What is different than the module?

I'm not sure what you are asking.

2 Aug 2009, 2:28 AM
#3170
webskipper avatar

webskipper

Totally Zenned

Join Date:
Nov 2007
Location:
USA
Posts:
876
Plugin Contributions:
2

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

Oh, you said you did not experience any issues with GC since being on a GC certified Server. Just wondering if they had a GC version that was different.

I certainly hope that GC gets a heck of a lot better and that the Yahoo/MS deal does not kill the need to use the Google Webmaster tools. I am still employing them and discovering more benefits everyday.

2 Aug 2009, 3:40 AM
#3171
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)

Ah, I see what you mean. I didn't mean a Google certified server, I said a Zen Cart certified one. I'm using the same Google Checkout module for Zen Cart as everyone else. Nothing extra.

I've had very good luck with it.

3 Aug 2009, 12:55 AM
#3172
liam1964 avatar

liam1964

New Zenner

Join Date:
Mar 2009
Location:
PA, USA
Posts:
31
Plugin Contributions:
0

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

Zen Cart 1.3.8a
Patch: 1::
Database Patch Level: 1.3.8

I wonder if someone can shed some light on this for me. Sorry if it is obvious, or a good answer posted elsewhere, I have tried to find help for myself on this and I can't get my head around it.

I have the same issue many people have ... Google Checkout will not send orders to ZC.

I have configured the HTACCESS with my ID numbers.
I have posted my URL in Google settings, and am set for XML there.
If I attempt to access the responsehandler.php file I get the correct request for ID & PW
It will not work for sandbox or merchant accounts.
I do get the orders from Google by email, just not in my admin area.

I "think" I have read and checked every bit of advice on here.

Please help!! :-)

Thank you. :-)

Below are some results I am getting ...

response_error.log

This file is used to record all the response errors encountered by Google Checkout Plugin

Wed Apr 1 14:59:11 CDT 2009:- Failed to Get Basic Authentication Headers
Wed Jul 29 22:08:46 CDT 2009:- Invalid or not supported Message
Thu Jul 30 5:53:31 CDT 2009:- Invalid or not supported Message
Sun Aug 2 13:13:41 CDT 2009:- Invalid or not supported Message
Sun Aug 2 13:21:29 CDT 2009:- Invalid or not supported Message
Sun Aug 2 13:22:42 CDT 2009:- Invalid or not supported Message
Sun Aug 2 13:24:00 CDT 2009:- Invalid or not supported Message
Sun Aug 2 18:57:37 CDT 2009:- Invalid or not supported Message
Sun Aug 2 19:07:35 CDT 2009:- Invalid or not supported Message

response_message.log

This file is used to record all the response messages by the Google Checkout plugin

Wed Apr 1 14:59:11 CDT 2009:-
Wed Jul 29 22:08:46 CDT 2009:-test
Thu Jul 30 5:53:31 CDT 2009:-
Sun Aug 2 13:13:41 CDT 2009:-
Sun Aug 2 13:21:29 CDT 2009:-
Sun Aug 2 13:22:42 CDT 2009:-
Sun Aug 2 13:24:00 CDT 2009:-
Sun Aug 2 18:57:37 CDT 2009:-
Sun Aug 2 19:07:35 CDT 2009:-

Responsehandler Test: Test your implementation
XML We Received:
HTTP/1.1 400 Bad Request
Date: Mon, 03 Aug 2009 00:07:35 GMT
Server: Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
X-Powered-By: PHP/5.2.9
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Set-Cookie: zenid=xxxxxxxxxxxx; path=/; domain=www.stuff4print.com
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1
Invalid or not supported Message

Again sorry if I am just being dumb :blush:

3 Aug 2009, 1:48 AM
#3173
chain_man avatar

chain_man

Zen Follower

Join Date:
Dec 2005
Location:
Box Elder, SD
Posts:
375
Plugin Contributions:
0

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

liam1964:

Zen Cart 1.3.8a
Patch: 1::
Database Patch Level: 1.3.8

I wonder if someone can shed some light on this for me. Sorry if it is obvious, or a good answer posted elsewhere, I have tried to find help for myself on this and I can't get my head around it.

I have the same issue many people have ... Google Checkout will not send orders to ZC.

I have configured the HTACCESS with my ID numbers.
I have posted my URL in Google settings, and am set for XML there.
If I attempt to access the responsehandler.php file I get the correct request for ID & PW
It will not work for sandbox or merchant accounts.
I do get the orders from Google by email, just not in my admin area.

I "think" I have read and checked every bit of advice on here.

Please help!! :-)

Thank you. :-)

What are the messages you are getting on the Google side?

Go to your Google Checkout account.
Go to the Tools tab
Open Integration Console on the left side.

There should be a list of error messages from Google attempting to reach your cart.

Are you sure you need to use the htaccess? DON'T- unless you really have to.

3 Aug 2009, 3:42 AM
#3174
liam1964 avatar

liam1964

New Zenner

Join Date:
Mar 2009
Location:
PA, USA
Posts:
31
Plugin Contributions:
0

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

There are zero messages in the Intergration Console. ??
I am not sure if I need to use htaccess - I have tried setting it to both true and false in the Module settings (is that what you mean or do I need to delete the htaccess file?)

Thank you very much for your reply :-)

3 Aug 2009, 2:33 PM
#3175
liam1964 avatar

liam1964

New Zenner

Join Date:
Mar 2009
Location:
PA, USA
Posts:
31
Plugin Contributions:
0

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

Any more thoughts anyone Please!

3 Aug 2009, 4:57 PM
#3176
btman avatar

btman

New Zenner

Join Date:
Jun 2009
Location:
Wales UK
Posts:
92
Plugin Contributions:
0

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

Make sure your ssl certificate is accepted by GC here.

Also make sure your https:// address is correct in GC > tools > integration.

With mine I assumed it was:
https://my_domain_name/googlecheckout/responsehandler.php

but in fact it was a shared ssl page:
https://secure.my_host_name/~my_username/googlecheckout/responsehandler.php

Hope that helps.

3 Aug 2009, 5:22 PM
#3177
liam1964 avatar

liam1964

New Zenner

Join Date:
Mar 2009
Location:
PA, USA
Posts:
31
Plugin Contributions:
0

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

btman:

Make sure your ssl certificate is accepted by GC here.

Also make sure your https:// address is correct in GC > tools > integration.

With mine I assumed it was:
https://my_domain_name/googlecheckout/responsehandler.php

but in fact it was a shared ssl page:
https://secure.my_host_name/~my_username/googlecheckout/responsehandler.php

Hope that helps.
Hello btman. Thanks for your advice.

My Certificate is not shared and so (I am advised) it works directly on my URL. It is also on the approved list "Equifax Secure Global eBusiness CA-1"

Oh this is giving me a headache!!!

Does anybody know what the error Code "HTTP/1.1 400 Bad Request" actually means ... is that a clue?

Also I am getting no errors or messages on my GC Intergration Console ... is that a clue?

3 Aug 2009, 7:18 PM
#3178
liam1964 avatar

liam1964

New Zenner

Join Date:
Mar 2009
Location:
PA, USA
Posts:
31
Plugin Contributions:
0

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

UPDATE - GC has started sending information to my ZC.
I still get the same errors from the Responder test - no clue why! But who care, it is working!!!

Thanks for anyone who tried to help, and sorry to anyone who still has the same problem as I have no clue what I did.

I have a theory that my host fixed something without telling me as I have been questioning them about it also ... but again, who cares.

4 Aug 2009, 2:24 AM
#3179
webskipper avatar

webskipper

Totally Zenned

Join Date:
Nov 2007
Location:
USA
Posts:
876
Plugin Contributions:
2

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

You'll find that the server resolves every 12 hours @5AM is best.

So once you empty your cache and the change you want doesn't occur regardless of what you do, then just walk away and come back tomorrow.

6 Aug 2009, 2:13 PM
#3180
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

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

Around the middle of June my Google Checkout button has been grayed out with "Not available for these items" showing. I have no idea why... no changes have been made to the Google checkout code, no ssl changes, no product changes.... any ideas?

Shrimp