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

Results 1,461 to 1,480 of 3,921
This thread is locked. New replies are disabled.
9 May 2007, 9:57 PM
#1461
blessisaacola avatar

blessisaacola

Totally Zenned

Join Date:
Feb 2004
Location:
Georgia, USA
Posts:
1,875
Plugin Contributions:
1

Google Checkout module for ZC 1.3.x (beta)

Woodymon:

If anyone here has an example table rate config for GC (two arrays in the payment module) which supports more than five weight classes please PM me a copy of the arrays so I can test. I have the mod working for three wight classes but not more. And I do not want to twek the code away from the non-standard approach so the shopowner can easily configure in the future.
Thanks,
Woody

I am not exactly sure if I understand your question. This is the table rate we are using and it works just fine for all the different weight setting.

.6:2.49,.13:3.49,2:5.99,4:7.99,6:9.99,8:11.99,10:12.99,15:15.99,20:19.99,100:24.99,150:0.00

10 May 2007, 6:27 AM
#1462
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)

BlessIsaacola:

I am not exactly sure if I understand your question. This is the table rate we are using and it works just fine for all the different weight setting.

.6:2.49,.13:3.49,2:5.99,4:7.99,6:9.99,8:11.99,10:12.99,15:15.99,20:19.99,100:24.99,150:0.00

Isaac,

Can you please PM a copy of your two arrays so I may compare/test.

Thanks,
Woody

10 May 2007, 7:08 AM
#1463
ptoly avatar

ptoly

New Zenner

Join Date:
Sep 2004
Posts:
19
Plugin Contributions:
0

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

I've been reading through this thread and trying hard to get this working for several days. I've gotten to the point of being able to actually charge on GC but I can't get GC to talk with my ZC.

Here is the error message in GC:
Error parsing XML; message from parser is: Content is not allowed in prolog.

Any ideas, anyone?

Thanks

10 May 2007, 9:32 AM
#1464
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)

ptoly:

I've gotten to the point of being able to actually charge on GC but I can't get GC to talk with my ZC.

Here is the error message in GC:
Error parsing XML; message from parser is: Content is not allowed in prolog.

Just some ideas:

Possibly malformed XML generated by the mod. (at the very beginning of the XML).

Did you edit the shipping arrays in googlecheckout.php payment module? Are you certain there are no formatting/syntax issues. Extra spaces in the file? The arrays have be carefully edited.

Please provide complete error entries from both:

  1. Google Checkout account -> Settings -> Integration
  2. And from googlecheckout/response_error.log

Log info relevant to the specific error. Possibly including the relevant XML when you observe the error.

Woody

10 May 2007, 9:41 AM
#1465
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)

ptoly:

Error parsing XML; message from parser is: Content is not allowed in prolog.
I forgot to ask: Which web browser are you observing this in?

Woody

10 May 2007, 10:01 AM
#1466
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)

ptoly:

Here is the error message in GC:
Error parsing XML; message from parser is: Content is not allowed in prolog.

A resource with some posts that might assist you:
http://groups.google.com/group/google-checkout-developers-forum/search?group=google-checkout-developers-forum&q=Content+is+not+allowed+in+prolog&qt_g=Search+this+group

Woody

10 May 2007, 10:35 AM
#1467
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)

SSL certificate changed from *.google.com to checkout.google.com
Tuesday, May 1, 2007 4:58 PM

This post is relevant to merchants that completed a level 2 integration using the order processing API. On May 10, we will update the SSL certificate for checkout.google.com from a wildcard certificate (*.google.com) to a certificate specifically issued for checkout.google.com.
If you use the order processing API, it's important that your code follows the security guidelines outlined in the API documentation.

The above post is from the Google Developer Blog.

http://googlecheckoutapi.blogspot.com/2007/05/ssl-certificate-changed-from-googlecom.html

Anyone aware if the GC for ZC mod is based on the "order processing" API and if this SSL cert change will affect 1.3R2 mod version released by ropu (a.k.a. Bruno Rovagnati)?

Ropu where are you?

Woody

10 May 2007, 11:35 AM
#1468
ptoly avatar

ptoly

New Zenner

Join Date:
Sep 2004
Posts:
19
Plugin Contributions:
0

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

Woodymon:

Just some ideas:

Possibly malformed XML generated by the mod. (at the very beginning of the XML).

Did you edit the shipping arrays in googlecheckout.php payment module? Are you certain there are no formatting/syntax issues. Extra spaces in the file? The arrays have be carefully edited.

Please provide complete error entries from both:

  1. Google Checkout account -> Settings -> Integration
  2. And from googlecheckout/response_error.log

Log info relevant to the specific error. Possibly including the relevant XML when you observe the error.

Woody

Thanks for your thorough reply Woody:

I have not modified the shipping arrays or anything in the googlecheckout directory.

I got the error entry from the Google Integration page in Safari. Here is the complete response:

May 10, 2007 3:05:07 PM JST
Error: Error parsing XML; message from parser is: Content is not allowed in prolog.
Warnings:
XML We Received:
Wed May 9 23:05:07 PDT 2007:- Invalid
XML We Sent:

<?xml version="1.0" encoding="UTF-8"?> <merchant-calculation-callback xmlns="http://checkout.google.com/schema/2" serial-number="72036039-c423-4f7c-810c-c27c1ba4eee2"> <shopping-cart> <items> <item> <tax-table-selector>Non-Taxable</tax-table-selector> <item-name>testing, testing, do not use</item-name> <quantity>1</quantity> <unit-price currency="USD">5.0</unit-price> <merchant-item-id>54</merchant-item-id> <item-description></item-description> <merchant-private-item-data>YToxNzp7czoyOiJpZCI7aTo1NDtzOjg6ImNhdGVnb3J5IjtzOjE6IjMiO3M6NDoibmFtZSI7czoyODoidGVzdGluZywgdGVzdGluZywgZG8gbm90IHVzZSI7czo1OiJtb2RlbCI7czowOiIiO3M6NToiaW1hZ2UiO3M6MTY6ImNvbnN0cnVjdGlvbi5wbmciO3M6NToicHJpY2UiO3M6NjoiNS4wMDAwIjtzOjg6InF1YW50aXR5IjtpOjE7czo2OiJ3ZWlnaHQiO2k6MDtzOjExOiJmaW5hbF9wcmljZSI7ZDo1O3M6MTU6Im9uZXRpbWVfY2hhcmdlcyI7aTowO3M6MTI6InRheF9jbGFzc19pZCI7czoxOiI0IjtzOjEwOiJhdHRyaWJ1dGVzIjtzOjA6IiI7czoxNzoiYXR0cmlidXRlc192YWx1ZXMiO3M6MDoiIjtzOjI4OiJwcm9kdWN0c19wcmljZWRfYnlfYXR0cmlidXRlIjtzOjE6IjAiO3M6MTU6InByb2R1Y3RfaXNfZnJlZSI7czoxOiIwIjtzOjIyOiJwcm9kdWN0c19kaXNjb3VudF90eXBlIjtzOjE6IjAiO3M6Mjc6InByb2R1Y3RzX2Rpc2NvdW50X3R5cGVfZnJvbSI7czoxOiIwIjt9</merchant-private-item-data> </item> </items> <merchant-private-data>
  <session-data>d4e37bdba68e8f2e29dafb6ad062bae7;zenid</session-data>
  
  
  <product-data>;54</product-data>
  
  
  <ip-address>198.162.1.1</ip-address>
  

</merchant-private-data>
</shopping-cart> <buyer-id>235385247619344</buyer-id> <calculate> <shipping> <method name="Zones: Zones Rates" /> </shipping> <addresses> <anonymous-address id="371236564071989"> <country-code>US</country-code> <city>Atown</city> <region>CA</region> <postal-code>012345</postal-code> </anonymous-address> </addresses> <merchant-code-strings /> <tax>false</tax> </calculate> <buyer-language>en_US</buyer-language> </merchant-calculation-callback>

and here is the error log entry:

InvalidWed May 9 23:05:07 PDT 2007:- InvalidWed May 9 23:05:18 PDT 2007:- InvalidWed May 9 23:05:23 PDT 2007:- InvalidWed May 9 23:05:25 PDT 2007:- InvalidWed May 9 23:06:40 PDT 2007:- InvalidWed May 9 23:06:55 PDT 2007:- Invalid

Thanks

10 May 2007, 5:12 PM
#1469
sirbuck avatar

sirbuck

Zen Follower

Join Date:
Jan 2007
Location:
Carlsbad, CA
Posts:
161
Plugin Contributions:
0

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

I have my store set up to get live rates from FedEx, Ups, etc.. and would like the generated shipping rates to pass on to my Google Checkout. So far they don't.
I know that I can manually set up the rates in GC but since the rates Im getting will vary, I want GC to always match.

Has anyone come across this before??

thanks

10 May 2007, 5:12 PM
#1470
sirbuck avatar

sirbuck

Zen Follower

Join Date:
Jan 2007
Location:
Carlsbad, CA
Posts:
161
Plugin Contributions:
0

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

I have my store set up to get live rates from FedEx, Ups, etc.. and would like the generated shipping rates to pass on to my Google Checkout. So far they don't.
I know that I can manually set up the rates in GC but since the rates Im getting will vary, I want GC to always match.

Has anyone come across this before??

thanks

10 May 2007, 6:34 PM
#1471
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)

ptoly:

I have not modified the shipping arrays or anything in the googlecheckout directory.

I got the error entry from the Google Integration page in Safari. Here is the complete response:

and here is the error log entry:
The last few lines, was that from the googlecheckout/response_error.log on your server?

The error you report is often generated when spaces or other characters are before (or within) the opening XML declaration. But that code is generated by the mod and then the data parsed by Google.

Previous link to Merchants forum posts will provide a little insight.

Probably best if you post issue in the GC Developers Forum (PHP API category) to hopefully obtain the attention of a Google "engineer". Note they don't have a good record of responding to all Q's over there so you may need to assert yourself. Include a link back to your post(s) in this thread to give them reference and be sure to report the version of the mod you are running. And ask for ropu ;-)

Woody

10 May 2007, 7:17 PM
#1472
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)

SirBuck:

I have my store set up to get live rates from FedEx, Ups, etc.. and would like the generated shipping rates to pass on to my Google Checkout. So far they don't.
I know that I can manually set up the rates in GC but since the rates Im getting will vary, I want GC to always match.

Sometimes connections between the ship provider and Zen Cart/Google Checkout servers fail. So when such a failure occurs the default ship values are applied.

It might be preferential to some shopowners that an admin option be available to the ZC shop-owner, to disable the default ship values in GC mod. So whenever a ship provider connect failure occurs, GC would prompt the customer (and shop-owner) an error has occurred and NOT process the order. Is this what you prefer?

I understand the fallback to default code is based on the API, so you might want to take this issue up on the GC API Developers forum.

Woody

10 May 2007, 7:40 PM
#1473
sirbuck avatar

sirbuck

Zen Follower

Join Date:
Jan 2007
Location:
Carlsbad, CA
Posts:
161
Plugin Contributions:
0

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

Thanks Woody!
I appreciate the quick reply. It makes sense, I think I just needed to hear it.

10 May 2007, 7:51 PM
#1474
heathenmagic avatar

heathenmagic

Totally Zenned

Join Date:
May 2005
Location:
England
Posts:
730
Plugin Contributions:
0

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

Hello there,

I have looked through this thread, and someone had this problem, but I couldn't see any solution

Fatal error: Cannot redeclare strleft() (previously declared in /home/thegemtr/public_html/googlecheckout/gcheckout.php:43) in /home/thegemtr/public_html/googlecheckout/gcheckout.php on line 43
I appreciate any help. This message appears at the bottom of the shopping cart page. Everything else seems to work ok, only the shipping is ignored, but I haven't looked into that much.

Cheers :smile:

10 May 2007, 10:12 PM
#1475
ptoly avatar

ptoly

New Zenner

Join Date:
Sep 2004
Posts:
19
Plugin Contributions:
0

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

Woodymon:

The last few lines, was that from the googlecheckout/response_error.log on your server?

The error you report is often generated when spaces or other characters are before (or within) the opening XML declaration. But that code is generated by the mod and then the data parsed by Google.

Previous link to Merchants forum posts will provide a little insight.

Probably best if you post issue in the GC Developers Forum (PHP API category) to hopefully obtain the attention of a Google "engineer". Note they don't have a good record of responding to all Q's over there so you may need to assert yourself. Include a link back to your post(s) in this thread to give them reference and be sure to report the version of the mod you are running. And ask for ropu ;-)

Woody

Yes, it was from the response_error.log. Thanks very much for the advice and input. I'm already spending a bit of time reading up on that link you left before.

Cheers,
Ptoly

11 May 2007, 6:27 AM
#1476
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)

HeathenMagic:

Hello there,

I have looked through this thread, and someone had this problem, but I couldn't see any solution

I appreciate any help. This message appears at the bottom of the shopping cart page. Everything else seems to work ok, only the shipping is ignored, but I haven't looked into that much.

I agree there was no real closure on this topic, or for that matter many other topics in this thread. It's as if Google worked on this mod for awhile then dropped complete support.

Just some possibilities and hunches:

Which version of the GC for ZC mod do you have installed? Did you upgrade from a previously installed mod version? Are you certain your upgraded all previous mod version files (and removed those no longer used)? Possibly a no longer used file in previous mod version is also loading that same function (old multisocket)?

I don't know if this helps but did you see either of these posts regarding editing gcheckout.php:
http://www.zen-cart.com/forum/showpost.php?p=341868&postcount=829
http://www.zen-cart.com/forum/showpost.php?p=351475&postcount=947

Did you attempt to comment out the strleft function in gcheckout.php? If so what was your result?

And it was suggested previously to rename the relevant functions (it appears that this was promised but was not done in the latest version). Try appending gc_ to the beginning of both the selfURL and strleft functions (and where ever the functions are called). Please first search all your Zen Cart files with the Developers Toolkit, to ensure those same functions are not called elsewhere, or different functions with the same name are used elsewhere.

If you want to learn more about needles in a haystack, it appears the function to capture the URL was borrowed from here: http://dev.kanngard.net/Permalinks/ID_20050507183447.html

and which was likely derived from here: http://www.php.net/strpos

Woody

11 May 2007, 11:32 AM
#1477
jonathankeay avatar

jonathankeay

New Zenner

Join Date:
May 2007
Posts:
6
Plugin Contributions:
0

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

Hi Guyzs

In need of some help - have been working on a zen cart store, have google checkout as a payment provider, the module works fine in that the sale moves accross to google checkout and is processed correctly.

The issue I have is that when the customer returns to zencart, the shopping cart is not cleared down and the order will not appear in the admin orders section.

My API callback URL seems correct, I am going through my server ssl to the responsehandler and I do not get any integration issue error messages.

Something somewhere however must be wrong.

Can anyone shed any light

The response error log states
Fri May 11 12:23:46 BST 2007:- HTTP Basic Authentication failed. Can't retrive Merchant Id/Key, Installed over CGI??

If anyone can point me in the right direction I would be eternally grateful.

11 May 2007, 12:12 PM
#1478
helpme avatar

helpme

Totally Zenned

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

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

I finally have google checkout installed and I thought it was all good, as my button in payments is green and there is no problems or errors listed!! Then I was checking my website and I went to my shopping cart and there are ERRORS!!!!
Warning: require_once(admin/includes/configure.php) [function.require-once]: failed to open stream: No such file or directory in D:\hosting\member\tsjohnsonllc\site1\googlecheckout\gcheckout.php on line 31

Fatal error: require_once() [function.require]: Failed opening required 'admin/includes/configure.php' (include_path='.;C:\php5\pear') in D:\hosting\member\tsjohnsonllc\site1\googlecheckout\gcheckout.php on line 31

Any idea what I can do or what I didn't do? Why aren't these showing up in my admin?

Thanks!

11 May 2007, 12:37 PM
#1479
heathenmagic avatar

heathenmagic

Totally Zenned

Join Date:
May 2005
Location:
England
Posts:
730
Plugin Contributions:
0

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

Have you renamed admin at all? Go to gcheckout.php, look for this bit:

require_once('admin/includes/configure.php');
require('includes/languages/' . $_SESSION['language'] . '/' .'modules/payment/googlecheckout.php');
require_once('includes/modules/payment/googlecheckout.php');

rename admin to your admin name. :smile:

11 May 2007, 12:39 PM
#1480
heathenmagic avatar

heathenmagic

Totally Zenned

Join Date:
May 2005
Location:
England
Posts:
730
Plugin Contributions:
0

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

Thanks Woodymon,

I will try renaming the functions. I did a search for strleft, but nothing was found. Strleft appears in gcheckout.php only, which is outside the admin / includes structure. But commenting out might do the trick. Will let you know.

:smile: