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

Results 3,301 to 3,320 of 3,921
This thread is locked. New replies are disabled.
15 Mar 2010, 05:50
#3301
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

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

Google Checkout module for ZC 1.3.x (beta)

OBX1:

I'm having an odd issue. Google checkout is pointing to update_product link. Has anyone come across this before? I've gone in and edited template because I want Paypal EC to show up before GC and PP link is showing fine.

Here's how I have it set up so far, I'm just at a complete loss of how it's picking up the update_product link???

<!--bof shopping cart buttons--> <div class="buttonRow forward"><!-- ** BEGIN PAYPAL EXPRESS CHECKOUT ** --> <?php // the tpl_ec_button template only displays EC option if cart contents >0 and value >0 if (defined('MODULE_PAYMENT_PAYPALWPP_STATUS') && MODULE_PAYMENT_PAYPALWPP_STATUS == 'True') { include(DIR_FS_CATALOG . DIR_WS_MODULES . 'payment/paypal/tpl_ec_button.php'); } ?> <!-- ** END PAYPAL EXPRESS CHECKOUT ** --></div> <div class="buttonRow forward"><!-- * BEGIN GOOGLE CHECKOUT * --> <?php // ** GOOGLE CHECKOUT ** include(DIR_WS_MODULES . 'show_google_components.php'); // ** END GOOGLE CHECKOUT ** ?> <!-- * END GOOGLE CHECKOUT * --></div> <div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_CONTINUE_SHOPPING, BUTTON_CONTINUE_SHOPPING_ALT) . '</a>'; ?></div> <?php // show update cart button if (SHOW_SHOPPING_CART_UPDATE == 2 or SHOW_SHOPPING_CART_UPDATE == 3) { ?> <!--<div class="buttonRow back"><?php echo zen_image_submit(ICON_IMAGE_UPDATE, ICON_UPDATE_ALT); ?></a></div>--> <?php } else { // don't show update button below cart ?> <?php } // show update button ?> <!--eof shopping cart buttons--> ```

Just found out that I am having the same issue.... Google Checkout is before Paypal express though for me.... it just doesn't make sense?

17 Mar 2010, 17:18
#3302
georgiepants avatar

georgiepants

New Zenner

Join Date:
Jan 2010
Posts:
36
Plugin Contributions:
0

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

This post is for anyone having trouble achieving Level 2 integration for Google checkout in Zen Cart v 1.3.8a.

My problem was, although everything was correctly installed, (files, SSL, Merchant ID, etc etc etc), Google checkout was still performing at Level 1 integration (customer can purchase items through google checkout button however there is no communication between Google and your admin).
No account is created for the customer, orders do not show up in admin, stock is not depreciated because the order is not recorded in the database.

I was getting Google Checkout Errors stating that my callback URL was not accessible.

After MUCH research in google code forums, i found a bit of advice that worked to fix this.

Please read, code.google.com/p/google-checkout-php-sample-code/issues/detail?id=36

as it refers to this php snippet:

 function HttpAuthentication($headers=null, $die=true) {
      if(!is_null($headers)) {
        $_SERVER = $headers;
      }
      if(isset($_SERVER['PHP_AUTH_USER']) && isset($_SERVER['PHP_AUTH_PW'])) {
        $compare_mer_id = $_SERVER['PHP_AUTH_USER']; 
        $compare_mer_key = $_SERVER['PHP_AUTH_PW'];
      }
  //  IIS Note::  For HTTP Authentication to work with IIS, 
  // the PHP directive cgi.rfc2616_headers must be set to 0 (the default value). 
      else if(isset($_SERVER['HTTP_AUTHORIZATION'])){
        list($compare_mer_id, $compare_mer_key) = explode(':', 
            base64_decode(substr($_SERVER['HTTP_AUTHORIZATION'],
            strpos($_SERVER['HTTP_AUTHORIZATION'], " ") + 1)));
      } else if(isset($_SERVER['Authorization'])) {
        list($compare_mer_id, $compare_mer_key) = explode(':', 
            base64_decode(substr($_SERVER['Authorization'],
            strpos($_SERVER['Authorization'], " ") + 1)));
      } else {
        $this->SendFailAuthenticationStatus(
              "Failed to Get Basic Authentication Headers",$die);
        return false;
      }
      if($compare_mer_id != $this->merchant_id 
         || $compare_mer_key != $this->merchant_key) {
        $this->SendFailAuthenticationStatus("Invalid Merchant Id/Key Pair",$die);
        return false;
      }
      return true;
    }

it worked for me!

19 Mar 2010, 12:56
#3303
ncflanagan avatar

ncflanagan

New Zenner

Join Date:
Nov 2009
Posts:
14
Plugin Contributions:
0

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

psychosis:

I installed the cart as directed and followed all the instructions. Everything seems to work. its in the modules. it shows up on my site. i put it on. I have the google account, entered all the ID info etc.
when i make a test order, i can see googlecheckout on my sites checkout site, when i choose it, and click confirm to confirm the order, it doesnt do anything. Just sends me back to the beginning of the checkout process where it says, Your order is not complete, please click on the checkout button to finish your order.
when you click the button it starts the checkout process again, and goes into a perpetual loop. i read about 40 pages in this thread, but didnt see anything to help.
anyone?

i am using 1.3.8a
the only addons i have is the security patch.
standard template, standard install.
my site is https://www.vinyljunkiedistro.com

I had this same problem. Turns out the directions that unzipped with the files didn't list all of the files that needed to be copied over... there were 6 files that needed to be uploaded in YOUR_ZENCART_FOLDER/includes/templates/YOUR_TEMPLATE/templates, but the directions only identified 2 that needed to be uploaded. Once I uploaded the rest of them, I got hte 'big blue button' and it worked like a charm!
HTH!

22 Mar 2010, 17:24
#3304
khopek avatar

khopek

Totally Zenned

Join Date:
Aug 2006
Location:
portlandish, oregon
Posts:
795
Plugin Contributions:
0

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

I have been having an issue with GCO for over a year now and its about to the point I am just going to delete the whole darned thing from my site.

I have NO communication between Google and Zencart. The error in Tools->Integration Console is :
**We encountered an error trying to access your server at https://domainname.com/shop/googlecheckout/responsehandler.php -- the error we got is Send failed with code: 500. Response body was: <!-- SHTML Wrapper - 500 Server Error --> **

Any ideas would be nice as just yesterday I had a customer order, but no record of it in Admin. Is there any way to manually add the order to Zencart Admin so I at least have a record of it?

22 Mar 2010, 18:10
#3305
slomojojo avatar

slomojojo

Zen Follower

Join Date:
Feb 2009
Posts:
142
Plugin Contributions:
0

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

First, I'd check if responsehandler.php is actually present where the Integration Console thinks it is. I'm guessing this is your path; I entered "https://eclecticaclothing.com/shop/googlecheckout/responsehandler.php" in my browser and got a blank page.

On my site, doing the same thing pulls up a password request.

22 Mar 2010, 18:28
#3306
khopek avatar

khopek

Totally Zenned

Join Date:
Aug 2006
Location:
portlandish, oregon
Posts:
795
Plugin Contributions:
0

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

Interesting..well now I am lost at what do to with this since I don't see an error. It's very frustrating as GCO will work for months, then suddenly stop working, with no changed to the site whatsoever.

28 Mar 2010, 10:53
#3307
starlitefurniture avatar

starlitefurniture

New Zenner

Join Date:
Nov 2009
Posts:
10
Plugin Contributions:
0

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

i have the same problem google not sending info back to admin, also their is no google checkout button on final checkout page, although its present as express checkout on the other pages
i offer free shipping , on google interface shows customers have selected store pick up -is there anyway of correcting this to show free shipping
thanks any help greatly appreciated

https://www.starlitefurniture.co.uk

28 Mar 2010, 23:57
#3308
amycapolupo avatar

amycapolupo

New Zenner

Join Date:
Dec 2009
Posts:
51
Plugin Contributions:
0

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

Hi everyone, I am using the latest version of Zen Cart and I am attempting to completely remove the module from my store. I have uninstalled all the files and i have reinstalled the files that were changes. I also dropped the 2 database table the the module added. I still have Google orders showing on my admin page.

Specifically this is what I see:

Orders
Pending: 4
Processing: 3
Delivered: 0
Update: 0
Google New: 0
Google Processing: 0
Google Digital Processed: 0
Google Shipped: 0
Google Refunded: 0
Google Shipped and Refunded: 0
Google Canceled: 0

How can I remove this last little bit of information so as not to confuse the store manager?

Thank you!
Amy

29 Mar 2010, 00:39
#3309
slomojojo avatar

slomojojo

Zen Follower

Join Date:
Feb 2009
Posts:
142
Plugin Contributions:
0

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

Those fields are in the database table named "zen_order_status"

29 Mar 2010, 00:49
#3310
slomojojo avatar

slomojojo

Zen Follower

Join Date:
Feb 2009
Posts:
142
Plugin Contributions:
0

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

starlitefurniture:

i have the same problem google not sending info back to admin, also their is no google checkout button on final checkout page, although its present as express checkout on the other pages

https://www.starlitefurniture.co.uk
Just a guess, but have you excluded the googlecheckout folder from being rewritten by your URL rewrite addon? If you're using CEON, you add it to the .htaccess file.

01 Apr 2010, 11:54
#3311
gaffettape avatar

gaffettape

Zen Follower

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

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

I have a question,

I have recently installed Google Checkout. I have run a few test orders sucessfully.

However:

In the googlecheckout README file it says "Make sure you set the file attribute to 777 for
/googlecheckout/logs/response_error.log and /googlecheckout/logs/response_message.log files."

I have done this. After running a few test orders, I then FTP'd a copy of /public_html/googlecheckout/logs/response_message.log to my local computer - this response_message.log file contained all test customers details; address, email, phone number etc... out of interest I then went to http://www.mydomain.com/googlecheckout/logs/response_message.log and was able to download the response_message.log file - containing sensitive customer info. Does this mean anyone can do the same?? Is this correct?? Have I done something wrong??

Also I noticed that my google checkout does not subtract an item from stock when purcased.. is this normal??

Thanks.

01 Apr 2010, 13:50
#3312
slomojojo avatar

slomojojo

Zen Follower

Join Date:
Feb 2009
Posts:
142
Plugin Contributions:
0

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

gaffettape:

I have a question,

I then went to http://www.mydomain.com/googlecheckout/logs/response_message.log and was able to download the response_message.log file - containing sensitive customer info. Does this mean anyone can do the same?? Is this correct?? Have I done something wrong??

Thanks.

There's suppose to be an .htaccess file in the log folder that denies access to the log files.

Dunno about the stock subtraction.

01 Apr 2010, 14:18
#3313
gaffettape avatar

gaffettape

Zen Follower

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

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

Thanks for that info, I must of missed it out when I uploaded the original files. It's fixed now :smile:

01 Apr 2010, 17:34
#3314
gaffettape avatar

gaffettape

Zen Follower

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

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

Ok so I have got most problems fixed, but I still have a few remaining...

#1: The Low Stock email is not being sent to the cart admin email address when an item that should usually trigger the low stock email is purchased with GC - is this normal?

#2: Customer not receiving email containing login details (username & pass) for store account created by GC after sale has completed (which should be an immediate thing right??).

#3: Problem with customers country not being filled in correctly/filled in at all (not sure) by google checkout. This causes ALL customers details who purchased with GC to be blank in zen admin... BUT If I login as the customer (which I can because Im in sandbox mode with my chosen sandbox buying account) and then choose a country from the dropdown list (United Kingdom) this fixes the prob, but obviously I cant do this for each and every customer can I. This is the error I get when clicking on customers name from admin :

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/xxxx/public_html/myadminname/customers.php on line 1099
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/xxxx/public_html/myadminname/customers.php on line 1101
Warning: reset() [function.reset]: Passed variable is not an array or object in /home/xxxx/public_html/myadminname/includes/classes/object_info.php on line 29
Warning: Variable passed to each() is not an array or object in /home/xxxx/public_html/myadminname/includes/classes/object_info.php on line 30

Thanks for any help :smile:

01 Apr 2010, 23:30
#3315
georgiepants avatar

georgiepants

New Zenner

Join Date:
Jan 2010
Posts:
36
Plugin Contributions:
0

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

gaffettape:

Ok so I have got most problems fixed, but I still have a few remaining...
#1: The Low Stock email is not being sent to the cart admin email address when an item that should usually trigger the low stock email is purchased with GC - is this normal?
Not sure but part of the GC privacy policies prevents the Zen Cart admin from sending auto emails after purchase and auto account creation. It might inadvertently effect this too.

#2: Customer not receiving email containing login details (username & pass) for store account created by GC after sale has completed (which should be an immediate thing right??).
same reason as above, there's no way around this as of yet. If you do find a way I'd love to know :)

#3: Problem with customers country not being filled in correctly/filled in at all (not sure) by google checkout. This causes ALL customers details who purchased with GC to be blank in zen admin... BUT If I login as the customer (which I can because Im in sandbox mode with my chosen sandbox buying account) and then choose a country from the dropdown list (United Kingdom) this fixes the prob, but obviously I cant do this for each and every customer can I. This is the error I get when clicking on customers name from admin :

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/xxxx/public_html/myadminname/customers.php on line 1099
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/xxxx/public_html/myadminname/customers.php on line 1101
Warning: reset() [function.reset]: Passed variable is not an array or object in /home/xxxx/public_html/myadminname/includes/classes/object_info.php on line 29
Warning: Variable passed to each() is not an array or object in /home/xxxx/public_html/myadminname/includes/classes/object_info.php on line 30
This article may help.

:)

02 Apr 2010, 00:00
#3316
gaffettape avatar

gaffettape

Zen Follower

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

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

Thanks for that info georgiepants!

#1 Nice to finally find out it's a common prob. With regards to #2 above... the strange thing is that 1 order (out of my so far 34 sandbox test orders!!) did initiate an email to be sent from "[email protected]" subject "You have received a note from Test Co" to the test buyers email account with the login details in the message body read:

"Hello Mr A Test,

Test Co has sent you the following message regarding your order:

These are your Credentials to log into xxxx.com site. User: [email protected] Pass: xxxx Please change your password after logging in - Change it in "MyAccount" area"  

ORDER-DETAILS-HERE-ETC

... I have so far failed at every attempt to reproduce this effect - I think it must of just been a glitch or something.

Also, orders are showing up in zen cart admin from GC however when I update those order statuses via ZenCart admin they don't update/change on my GC account. Is this normal aswell? Is this addon just a way of notifying you via ZC admin of a new GC orders - with the intention that you do all of the processing work (ie charging, marking as shipped etc) via your GC account??

One more question - how do I find out if my Site is installed with PHP over CGI???

Thanks :smile:

02 Apr 2010, 01:25
#3317
georgiepants avatar

georgiepants

New Zenner

Join Date:
Jan 2010
Posts:
36
Plugin Contributions:
0

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

Also, orders are showing up in zen cart admin from GC however when I update those order statuses via ZenCart admin they don't update/change on my GC account. Is this normal as well? Is this addon just a way of notifying you via ZC admin of a new GC orders - with the intention that you do all of the processing work (ie charging, marking as shipped etc) via your GC account??
Order updates made from Zen Cart admin should be sent to the GC accounts (customer and merchant). Make sure you're updating the order using the Google choices from the drop down list. If you get a pink error message in the top of ZC Admin its prob because the GC status you chose was not in the correct order (cant choose refunded before charged, etc.)
Also, GC orders are automatically "archived" after they are updated to shipped so check that they are not hiding there.

One more question - how do I find out if my Site is installed with PHP over CGI???

Thanks :smile:
I have Godaddy as a host and I know they use PHP over CGI. You can call your host to find out or do a google search for "your host name, php cgi" and I'm sure your search results will yield some relevant info :)

02 Apr 2010, 13:16
#3318
gaffettape avatar

gaffettape

Zen Follower

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

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

These are the error codes I get when google checkout is in sandbox mode with .htaccess Basic Authentication Mode set to true after running htaccess.php - which was run with /googlecheckout/ folder permissions set to 777 temporarily, and then set back to 755. I have a comodo shared SSL on the site. Please note I have edited out any names/numbers below and replaced them with 'xxxx'

First error below is from Zen Carts debug mode cache:

[02-Apr-2010 14:02:42] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/xxxx/public_html/googlecheckout/library/googleresponse.php:201) in /home/xxxx/public_html/googlecheckout/library/googleresponse.php on line 135

**Second error below is from the googlecheckout response_error.log:
**

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

Fri Apr 2 13:02:42 UTC 2010:- HTTP/1.1 400 Bad Request
Content-Type: application/xml; charset=UTF-8
Transfer-Encoding: chunked
Date: Fri, 02 Apr 2010 13:02:50 GMT
Expires: Fri, 02 Apr 2010 13:02:50 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
Set-Cookie: xxxx; Expires=Fri, 02-Apr-2010 14:02:50 GMT; Path=/; Secure; HttpOnly
Server: GSE

<?xml version="1.0" encoding="UTF-8"?> <error xmlns="http://checkout.google.com/schema/2" serial-number="xxxx"> <error-message>Ids are integral numbers, but you sent: </error-message> </error>

I would be grateful if anyone could tell me what the above errors mean & how to fix them.

Thank you :smile:

03 Apr 2010, 00:50
#3319
gaffettape avatar

gaffettape

Zen Follower

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

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

After A LOT of checking and testing with this addon I'm just not happy with it, unlike some other users I have not managed to get it working :blush:

This is the first zen cart addon so far that I have had to give up on. I have uninstalled ALL files/folder/bits of code relating to this addon by following the installation instructions in reverse.

The only problem I have is that for some reason I still have

Google New: 0
Google Processing: 0
Google Digital Processed: 0
Google Shipped: 0
Google Refunded: 0
Google Shipped and Refunded: 0
Google Canceled: 0

Showing up on my zen carts Admin frontpage Orders box... how do I remove this???

Thanks.

03 Apr 2010, 20:08
#3320
hamid84 avatar

hamid84

Zen Follower

Join Date:
Feb 2007
Location:
Walsall
Posts:
223
Plugin Contributions:
0

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

Do not be disappointed. You installed the module because you wanted to use GC.

I went through the same trouble but got it to work.

Process is very simple. Make sure you download the latest version which is 1.4.7.

Upload all files.

Go to your merchant account and get the Merchant ID along key and enter in zencart.

API URL.. It's www.yoursite.com/googlecheckout/***.handler.php

Do not forget to create .htaccess that will have to go into googlecheckout directory.

Keep doing it and you will get to somewhere.:clap: