Forums / Addon Payment Modules / Google Checkout module for ZC 1.3.x (beta)

Google Checkout module for ZC 1.3.x (beta)

Locked

Started by jacob13moon on 26 Sep 2006, 8:09 PM · Views: 1,101,464

Results 441 to 460 of 3,921
This thread is locked. New replies are disabled.
26 Dec 2006, 8:04 PM
#441
gldrush98 avatar

gldrush98

New Zenner

Join Date:
Dec 2006
Posts:
10
Plugin Contributions:
0

Google Checkout module for ZC 1.3.x (beta)

ok... reinstalled 1.0.5 and first thing I noticed is that it is passing my FedEx/USPS options to GCO, but they all have no monetary value?

26 Dec 2006, 8:32 PM
#442
gldrush98 avatar

gldrush98

New Zenner

Join Date:
Dec 2006
Posts:
10
Plugin Contributions:
0

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

really I'm not trying to post so much... but,
the no monetary value is my fault... I'm on a new testing server and google is calling the production server's address for the reference handler for some reason. This will probably be resolved later once I can get the sub-domain added on to the secure server.
So it looks like GCO 1.0.5 might be working correctly... this is excitting.

26 Dec 2006, 8:41 PM
#443
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)

GldRush98:

really I'm not trying to post so much... but,
the no monetary value is my fault... I'm on a new testing server and google is calling the production server's address for the reference handler for some reason. This will probably be resolved later once I can get the sub-domain added on to the secure server.
So it looks like GCO 1.0.5 might be working correctly... this is excitting.

Set up a GCO sandbox account and configure your paynent mod for sandbox mode and enter the sandbox account authetication info.

26 Dec 2006, 9:18 PM
#444
gldrush98 avatar

gldrush98

New Zenner

Join Date:
Dec 2006
Posts:
10
Plugin Contributions:
0

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

Yeah, I've got all the sandbox stuff set up right, and I have the address of the test server entered in the integration panel on GCO sandbox, but for some reason GCO keeps calling the address of the secure server and not the testing server. I'm not sure why. But like I said, I will hopefully have this resolved in the next hour or so, and then I will know if it's all working or not :)

27 Dec 2006, 1:59 PM
#445
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)

Hi everyone

im posting a fix for merchant calculation shipping

this fix solves the problem when retrieving more than one quote (method) form the same shipping provider.
ex. getting FedEx: Priority (by 10:30AM, later for rural), FedEx: 2 Day Air

before the module returns for all methods the same shipping cost.
now it retrieves the correct price for each one.

change code in responsehandler.php line ~426

                    $quotes = $shipping_modules->quote($methods_hash[$method_name][0], $methods_hash[$method_name][2]);
                    //print_r($quotes);
                    $price = $quotes[0]['methods'][0]['cost'];
                    $shippable = "true";
                    //if there is a problem with the method, i mark it as non-shippable
                    if(!isset($quotes[0]['methods'][0]['cost']) || isset($quotes[0]['error'])) {
                        $shippable = "false";
                        $price = "0";
                    }

for this one

                    $quotes = $shipping_modules->quote($methods_hash[$method_name][0], $methods_hash[$method_name][2]);
                    //print_r($quotes);
                                $quote_id = count($quotes[0]['methods'])-1;
                    $price = $quotes[0]['methods'][$quote_id]['cost'];
                    $shippable = "true";
                    //if there is a problem with the method, i mark it as non-shippable
                    if(!isset($quotes[0]['methods'][$quote_id]['cost']) || isset($quotes[0]['error'])) {
                        $shippable = "false";
                        $price = "0";
                    }

please feel free to give us some feed back.

ropu

27 Dec 2006, 3:00 PM
#446
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)

GldRush98:

Yeah, I've got all the sandbox stuff set up right, and I have the address of the test server entered in the integration panel on GCO sandbox, but for some reason GCO keeps calling the address of the secure server and not the testing server. I'm not sure why. But like I said, I will hopefully have this resolved in the next hour or so, and then I will know if it's all working or not :)

tip:

have a look to googlecheckout/gcheckout.php line 476

    if ($srv_mode == 'https://sandbox.google.com/' && $http_mode == 'http') {
        $url = HTTP_SERVER . DIR_WS_CATALOG . 'googlecheckout/responsehandler.php';
    } else {
        $url = HTTPS_SERVER . DIR_WS_CATALOG . 'googlecheckout/responsehandler.php';
    }
    $gcheck->push('merchant-calculations');
        $gcheck->element('merchant-calculations-url', $url);
        $gcheck->element('accept-merchant-coupons', 'true');
        //$gcheck->element('accept-gift-certificates', 'true');
        
    $gcheck->pop('merchant-calculations');

here is set the url for the merchant calculations process

ropu

27 Dec 2006, 8:58 PM
#447
gldrush98 avatar

gldrush98

New Zenner

Join Date:
Dec 2006
Posts:
10
Plugin Contributions:
0

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

ok, I seem to have run in to a big wall on this one.
I thought everything would work once I got the secure server's ip address entered in to our DNS but it's just not working.
When I go to Google Checkout it won't pull in any shipping rates from my site.

In GCO's Sandbox inegration panel under Integrtion Issues all I'm getting now is

Your server returned no data in its response; Checkout requires data of type merchant-calculation-results in response to merchant-calculation-callback
Every single time I go to the GCO cart.

ropu, thanks for your suggestion, and I tried manually editing and setting the secure server's address in there but it didn't help me.

Any insight here? This is me stumped.

27 Dec 2006, 9:24 PM
#448
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)

ropu:

Hi everyone

im posting a fix for merchant calculation shipping

this fix solves the problem when retrieving more than one quote (method) form the same shipping provider.
ex. getting FedEx: Priority (by 10:30AM, later for rural), FedEx: 2 Day Air

before the module returns for all methods the same shipping cost.
now it retrieves the correct price for each one.

change code in responsehandler.php line ~426

                $quotes = $shipping_modules->quote($methods_hash[$method_name][0], $methods_hash[$method_name][2]);
                //print_r($quotes);
                $price = $quotes[0]['methods'][0]['cost'];
                $shippable = "true";
                //if there is a problem with the method, i mark it as non-shippable
                if(!isset($quotes[0]['methods'][0]['cost']) || isset($quotes[0]['error'])) {
                    $shippable = "false";
                    $price = "0";
                }
> for this one
> ```
                    $quotes = $shipping_modules->quote($methods_hash[$method_name][0], $methods_hash[$method_name][2]);
                    //print_r($quotes);
                                $quote_id = count($quotes[0]['methods'])-1;
                    $price = $quotes[0]['methods'][$quote_id]['cost'];
                    $shippable = "true";
                    //if there is a problem with the method, i mark it as non-shippable
                    if(!isset($quotes[0]['methods'][$quote_id]['cost']) || isset($quotes[0]['error'])) {
                        $shippable = "false";
                        $price = "0";
                    }

please feel free to give us some feed back.

ropu

I reinstalled 1.0.5 entirely in hopes of using the merchant selection for shipping. I removed my mzmt shipping module as it did not seem to be recognized anyway. (I'll probably have to edit on the the obscure googlecheckout.php files... shouldn't have to though...)

I have table method and usps now. When setting up GCO module, the only shipping method that displays is usps. table does not appear.

Made the modification suggested 3 posts above this. Created order for sandbox. Shipping options are all usps and all have the same price - $3.63, no matter how many items purchased. (usps has $3.00 handling charge included...)

At times, messing with various mods suggested in this thread, I got yellow "Does not ship to this address" message in GCO screen. Figured out this is standard error message produced when shippable is set to false (code around same area as latest mods were installed.) For grins, commented out error handler that set shippable to false. Amazingly, I had a variety of shipping methods to choose from in GCO screen, including freeshipper, usps and table. Values were defaults from Payment module configuration, but the selection of methods displayed...

Comments:
We should not have to edit includes/modules/payment/googlecheckout.php to include or exclude values for the arrays. A better method would be to read the enabled methods from the active shipping modules and build the arrays dynamically. Addin methods (such as mzmt) should also be included dynamically depending upon whether they have been enabled.

The usps array in the file includes/modules/payment/googlecheckout.php does not have an entry for media mail. If you have to hard-code the array values, at least check the modules they are based on...

28 Dec 2006, 3:37 AM
#449
xinno avatar

xinno

New Zenner

Join Date:
Dec 2006
Posts:
5
Plugin Contributions:
0

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

this topic has so many posts.

i'm having a similar problem as others.

I've got GCO sandbox setup on my shop, and I can click it and checkout. The orders are shown in my GCO account orders section, however nothing appears in ZC. My response_error and response_message logs are blank. Just out of curiosity, at the top of response_handler.php, I wrote some code to write a timestamp to a 3rd file. The 3rd file get written to when I directly to the response handler URL, but it never gets written to when I check out through GCO. I have set the API callback URL to the http://www.sss.com/googlecheckout/response_handler.php file on my site, and the callback method is XML.

I don't know what else to do or try, since it seems GCO will not even attempt to do any thing w/ myu response handler file. (as shown by no timestampe being written to the 3rd file).

28 Dec 2006, 4:27 AM
#450
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)

xinno:

this topic has so many posts.

i'm having a similar problem as others.

I've got GCO sandbox setup on my shop, and I can click it and checkout. The orders are shown in my GCO account orders section, however nothing appears in ZC. My response_error and response_message logs are blank. Just out of curiosity, at the top of response_handler.php, I wrote some code to write a timestamp to a 3rd file. The 3rd file get written to when I directly to the response handler URL, but it never gets written to when I check out through GCO. I have set the API callback URL to the http://www.sss.com/googlecheckout/response_handler.php file on my site, and the callback method is XML.

I don't know what else to do or try, since it seems GCO will not even attempt to do any thing w/ myu response handler file. (as shown by no timestampe being written to the 3rd file).

Check your API callback URL. Unless you renamed your file, responsehandler.php should not have an underscore in it.

28 Dec 2006, 4:30 AM
#451
xinno avatar

xinno

New Zenner

Join Date:
Dec 2006
Posts:
5
Plugin Contributions:
0

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

to follow up on my post,

i looked at my raw log files.
"POST /googlecheckout/responsehandler.php HTTP/1.0" 403 - "-" "Jakarta Commons-HttpClient/3.0.1"

any ideas as to why my server is returning 403?

I am on a shared hosting server. there is nothing in my .htaccess files except just enough to make zencart work.

.htaccess
php_value session.use_trans_sid off
php_value register_globals off
<Files ".ht*">
deny from all
</Files>

php_flag session.use_trans_sid off

28 Dec 2006, 3:39 PM
#452
xinno avatar

xinno

New Zenner

Join Date:
Dec 2006
Posts:
5
Plugin Contributions:
0

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

to follow up with my last issue, my web host looked into the issue and there was a security rule that was preventing the post to requesthandler.php

Now since that's settled, I need to figure out why my orders will not show up.
Is the product ID being passed with a ; first an issue?

28 Dec 2006, 4:24 PM
#453
xinno avatar

xinno

New Zenner

Join Date:
Dec 2006
Posts:
5
Plugin Contributions:
0

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

I am currently using GCO 1.0.4 with the order issues. My stock quantity is deducted properly, but the orders do not show up correctly.

Maybe I should try GCO 1.0.5, any help on where I can download this? I've looked on Zen and on Google's website and have been unable to find this download.

28 Dec 2006, 4:55 PM
#454
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)

xinno:

I am currently using GCO 1.0.4 with the order issues. My stock quantity is deducted properly, but the orders do not show up correctly.

Maybe I should try GCO 1.0.5, any help on where I can download this? I've looked on Zen and on Google's website and have been unable to find this download.

Start back about page 34 of this thread. A lot of troubleshooting and links to 1.0.5.

28 Dec 2006, 9:00 PM
#455
gldrush98 avatar

gldrush98

New Zenner

Join Date:
Dec 2006
Posts:
10
Plugin Contributions:
0

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

Update on my issues...

I finally have GCO 1.0.5 working 100% as it should.
It is finally pulling in our custom fedex and usps shipping rates properly which was the major snag. It's also finally sening ALL information back to our cart about which product was ordered, and how many, etc...

A programmer here had to re-write the entire merchant callback function as the one that was in there does not work.

I also had to change some other things around that 1.0.5 actually broke...

What a head ache.

28 Dec 2006, 9:02 PM
#456
gldrush98 avatar

gldrush98

New Zenner

Join Date:
Dec 2006
Posts:
10
Plugin Contributions:
0

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

xinno:

to follow up with my last issue, my web host looked into the issue and there was a security rule that was preventing the post to requesthandler.php

Now since that's settled, I need to figure out why my orders will not show up.
Is the product ID being passed with a ; first an issue?
No, the ; in front of order numbers was not an issue as I thought it might have been.
That is just the format it expects it in.
If ZC is not getting any data from google, I would first try using the 1.0.5 files and seeing if that helps. Also triple check the API callback url in your google sandbox settings.

29 Dec 2006, 12:05 AM
#457
xinno avatar

xinno

New Zenner

Join Date:
Dec 2006
Posts:
5
Plugin Contributions:
0

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

...

i just found that my orders section under customers shows all my google orders.
the reports section shows none.

is this normal?

29 Dec 2006, 1:31 AM
#458
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)

xinno:

...

i just found that my orders section under customers shows all my google orders.
the reports section shows none.

is this normal?

All my GCO orders are in my reports...

29 Dec 2006, 3:05 AM
#459
aktiveradio avatar

aktiveradio

New Zenner

Join Date:
Oct 2006
Posts:
5
Plugin Contributions:
0

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

where do I get 1.0.5 files ?

I still don't have my orders showing in the Admin side.

29 Dec 2006, 4:45 AM
#460
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)

aktiveradio:

where do I get 1.0.5 files ?

I still don't have my orders showing in the Admin side.

ropu has the code posted at:

http://google-checkout-zencart.googlecode.com/svn/trunk/

You will have to package the files yourself.

My suggestion is that you install 1.0.4 from the downloads then replace only these files - in the googlecheckout folder:

responsehandler.com
xmlbuilder.php
xmlparser.php

and add - in the googlecheckout folder:

googlemerchantcalculations.php
googleresult.php

You will be able to select one of the shipping methods as in 1.0.4. I use the table method.

This is the setup I have that works.

I believe that the newer responsehandler.php resolves the issue of items not feeding back to Admin. The two new files contain functions called by the new responsehandler.php and are needed to prevent error messages. The 2 xml...php files have improved xml handling functions.

The parts of 1.0.5 that don't seem to work - the merchant selectable shipping methods - are partly contained in gcheckout.php and the other files in the other folders that I don't recommend changing.