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 361 to 380 of 3,921
This thread is locked. New replies are disabled.
13 Dec 2006, 4:14 AM
#361
regenbauma avatar

regenbauma

New Zenner

Join Date:
Jul 2006
Posts:
40
Plugin Contributions:
0

Google Checkout module for ZC 1.3.x (beta)

i loaded 1.0.5 .... this took care of the problem of getting past the error of invalid shipping methods ...but now we get

Error parsing XML; message from parser is: Error on line -1: Premature end of file.

and an xml output like this

<?xml version="1.0" encoding="UTF-8"?> <merchant-calculation-callback xmlns="http://checkout.google.com/schema/2" serial-number="23412341234123412341234"> <shopping-cart> <merchant-private-data> <session-data>231412342234234123;zenid</session-data> <product-data>;57</product-data> <ip-address>xx.xx.xx.xx</ip-address>
</merchant-private-data>
<items>
  <item>
    <quantity>1</quantity>
    <unit-price currency="USD">25.95</unit-price>
    <item-name>6” Heat Resistant Cover</item-name>
    <item-description></item-description>
    <tax-table-selector>Taxable Goods</tax-table-selector>
  </item>
</items>
</shopping-cart> <buyer-id>xxxxxxxxxxxxxx</buyer-id> <calculate> <addresses> <anonymous-address id="xxxxxxxxxxxxxxx"> <country-code>US</country-code> <city>Atlanta</city> <region>GA</region> <postal-code>234234</postal-code> </anonymous-address> <anonymous-address id="xxxxxxxxxxxxxxxxxxx"> <country-code>US</country-code> <city>Atlanta</city> <region>GA</region> <postal-code>234324</postal-code> </anonymous-address> </addresses> <merchant-code-strings /> <tax>false</tax> <shipping> <method name="Table: Table Rate (vary by weight/price)" /> <method name="UPS: Next Day Air Early AM" /> <method name="UPS: Next Day Air Early AM Letter" /> <method name="UPS: Worldwide Expedited" /> </shipping> </calculate> <buyer-language>en_US</buyer-language> </merchant-calculation-callback>

Any clues ? Much thanks

13 Dec 2006, 7:35 AM
#362
triplemoons avatar

triplemoons

New Zenner

Join Date:
Oct 2006
Location:
Hanover, PA
Posts:
71
Plugin Contributions:
0

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

anjordan77:

Install the table rates for shipping and that should work

What's a table rate?

.: Stef :.

13 Dec 2006, 7:40 AM
#363
triplemoons avatar

triplemoons

New Zenner

Join Date:
Oct 2006
Location:
Hanover, PA
Posts:
71
Plugin Contributions:
0

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

Ok, I see what you mean by table rate. It's FLAT RATE shipping, which I do not want. It will not be the same shipping price as if you were useing Paypal, which is a BIG problem.

.: Stef :.

13 Dec 2006, 9:07 PM
#364
jercocomputers avatar

jercocomputers

New Zenner

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

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

I have tried to install the google payment module and I have received this error. Does anyone know anything about how to solve this issue?

We encountered an error trying to access your server at https://www.jercocomputers.com -- the error we got is:

sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target Warnings:

XML We Sent:<?xml version="1.0" encoding="UTF-8"?><order-state-change-notification xmlns="http://checkout.google.com/schema/2" serial-number="a9066db2-2995-4141-91e3-597df527a0d7"> <timestamp>2006-10-26T16:25:53.759Z</timestamp> <google-order-number>264229364221993</google-order-number> <new-fulfillment-order-state>PROCESSING</new-fulfillment-order-state> <new-financial-order-state>CHARGING</new-financial-order-state> <previous-fulfillment-order-state>NEW</previous-fulfillment-order-state> <previous-financial-order-state>REVIEWING</previous-financial-order-state></order-state-change-notification>

13 Dec 2006, 9:29 PM
#365
blackinches avatar

blackinches

New Zenner

Join Date:
Nov 2006
Posts:
43
Plugin Contributions:
0

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

ok everything was working fine, but now when i try to checkout with google it gives me this error.

<error serial-number="c21664a6-1d98-47ac-802c-e91c0e799d81"> <error-message>No seller found with id 121418258075668</error-message> </error>

is this a problem on google's side or mine?

you can check it out at https://www.airinfantry.com/catalog

14 Dec 2006, 1:14 AM
#366
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)

I tried v1.0.5.

Many problems, starting with shipping choices. Had a full string of mailing options from USPS. I only offer a couple... There was a textbox pre-filled with a zero for each option. No explanation in README or INSTALLATION about what this all means or how to decide what entries to make.

Had a large label with Multi-zone, multi-table description (which is the method I prefer) but no way to select it. Also had Table shipping option configured and activated but no way to select it in GCO setup.

Tried test customer. Got error message in checkout screen about invalid parameter in foreach function in gcheckout.php. Could still use GCO button, but shipping options in Google screen each showed $14.70 when at least media mail (which wasn't an option) should only be $2.50.

Had to roll back all files except responsehandler.php, xmlparser.php and xmlbuilder.php to 1.0.4 versions. Reselected Table shipping option. Was successful in sending order through sandbox.

The merchant-defined shipping is a great concept and I wish it worked...

14 Dec 2006, 3:42 AM
#367
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)

Thanks for those posting experiences with v.105. I will await implementing GCO for ZC mod into production until better news is posted in regards to Zen Cart shipping tables support and instant downloads support. But I will continue testing.

Below is a helpful resource for general GCO info:
http://groups.google.com/group/google-checkout-merchants-forum

Woody

14 Dec 2006, 5:01 AM
#368
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)

Woodymon:

Thanks for those posting experiences with v.105. I will await implementing GCO for ZC mod into production until better news is posted in regards to Zen Cart shipping tables support and instant downloads support. But I will continue testing.

Woody

On the other hand - I got a sale from the v1.0.4 install the same day I deployed it into production...!

14 Dec 2006, 6:13 AM
#369
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)

chain_man:

On the other hand - I got a sale from the v1.0.4 install the same day I deployed it into production...!

My issue with 1.04 is GCO would not work correctly without applying the fix (commenting out the code) as krypton1 posted.

However ropu previously reported in this thread:

as anjordan77 suggested, the fix works, but with security issues. anyone can post you a order emulating Google checkout.

So are you using v.1.04 with or without the krypton1 "fix"? And if you applied the "fix" then are you ok with security issue as suggested by ropu?

Woody

14 Dec 2006, 7:43 AM
#370
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)

chain_man:

Had to roll back all files except responsehandler.php, xmlparser.php and xmlbuilder.php to 1.0.4 versions. Reselected Table shipping option. Was successful in sending order through sandbox.

Woodymon:

So are you using v.1.04 with or without the krypton1 "fix"? And if you applied the "fix" then are you ok with security issue as suggested by ropu?

Chain_man stated above he is using responsehandler.php from v.1.05, replacing the patched 1.04 file. So I assume this fixes security issues?

Thus I configured the install as chain_man suggests (using v.1.04 except for the three files from v.1.05). And I found the order was processed and and two email messages sent to customer (Order receipt and Purchase receipt) and email sent to store-owner (purchase receipt) were delivered.

However order did not show up in Zen Cart admin.

Then I observed v. 105 contains two new files in /googlecheckout :

  • googleresult.php
  • googlemerchantcalculations.php

So I uploaded those files also.

And submitted a new order. Order processed successfully, email messages delivered to customer and store-owner AND order with product details displayed in admin.

Follows is the order status table on order page in Zen Cart admin.

Date Added Customer Notified Status Comments

12/12/2006 14:52:27 True Pending
Google Checkout Order No: ###############
Merachnat Calculations:

12/12/2006 14:52:30 False Pending
Risk Information:
Elegible for Protection: true
Avs Response: U
Cvn Response: U
Partial CC number: 1111
Buyer account age: 1

12/12/2006 14:52:50 False Processing
Time: 2006-12-12T02:18:49.635Z
New state: CHARGED

12/12/2006 14:52:50 False Processing
Latest charge amount: USD 25.0
Total charge amount: USD 25.0

12/12/2006 14:59:34 True Delivered
Testing 1,2,3... My Comments here

12/12/2006 14:59:34 True Delivered
Time: 2006-12-14T02:23:34.291Z
New state: DELIVERED

Not sure about the blank entry for "Merachnat Calculations: " (sic). I selected Table Rate for shipping in both the GCO mod configuration and on Google Accounts admin website.

(I have not tested ordering products with attributes since the only need I have per attributes is supporting instant downloads, which GCO does not).

My wishlist:

  1. "zone" based table-rate shipping support;
  2. instant download support.

Woody

14 Dec 2006, 9:22 AM
#371
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)

Woodymon:

Chain_man stated above he is using responsehandler.php from v.1.05, replacing the patched 1.04 file. So I assume this fixes security issues?

Not an expert opinion but it appears that issue is repaired in v.1.05.

Also in v.1.05 responsehandler.php an edit on line 715 is needed ;-)

Change 'Merachnat Calculations: '
to
'Merchant Calculations: '

I note major changes were implemented in v.1.05 responsehandler.php , yet the file id line in file header still shows:
"* File ID: responsehandler.php 10/14/2006 11:00 colosports"
which is the same time/date stamps shown in v1.04 version.

To Google developers (ropu, etc):

We all appreciate your efforts and understand this is still beta and that you may be somewhat new to zen cart magick... But please, when updating/editing mode files please do update the date/timestamp, version number and developer name in the file id line (in file header). And please inicate in the readme for the new version (within changelog) which files were changed, which files are new, and which have been removed since the previous mod version/distribution, etc.

This will make it much easier for us beta testers to test and update. Thanks.

Hint: Zone based table rate shipping & instant download support ;-)

P.S. Any plans for eCheck support in Google Checkout?

Time for me to roll this puppy out and see how well it works in the real world.

Thanks again,
Woody

14 Dec 2006, 1:47 PM
#372
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:

Not an expert opinion but it appears that issue is repaired in v.1.05.

Also in v.1.05 responsehandler.php an edit on line 715 is needed ;-)

Change 'Merachnat Calculations: '
to
'Merchant Calculations: '

I note major changes were implemented in v.1.05 responsehandler.php , yet the file id line in file header still shows:
"* File ID: responsehandler.php 10/14/2006 11:00 colosports"
which is the same time/date stamps shown in v1.04 version.

To Google developers (ropu, etc):

We all appreciate your efforts and understand this is still beta and that you may be somewhat new to zen cart magick... But please, when updating/editing mode files please do update the date/timestamp, version number and developer name in the file id line (in file header). And please inicate in the readme for the new version (within changelog) which files were changed, which files are new, and which have been removed since the previous mod version/distribution, etc.

This will make it much easier for us beta testers to test and update. Thanks.

Hint: Zone based table rate shipping & instant download support ;-)

P.S. Any plans for eCheck support in Google Checkout?

Time for me to roll this puppy out and see how well it works in the real world.

Thanks again,
Woody
Woody, thanks for the advise on the version matter. ill take note on it, and change it for any new version

please know that version 1.0.5 is a prerelase for testing. im being really busy this weeks. im looking at the bugs all of you reported and try to fix ir as soon as possible.

regarding softgoods, is not in the agenda right now, i must have a look, but there are other important issues to solve before adding a new functionality.

ropu

14 Dec 2006, 3:21 PM
#373
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)

regenbauma:

I have been happily testing GCO with no problem , thanks to all folks here. Suddenly today, clients complained that they were getting errors on submitting carts using GCO. Seems that suddenly the shipping data has become incorrect ... it seems that my ZC is sending

<shipping-methods> <flat-rate-shipping name="Standard flat-rate shipping- Table Rate"> <price currency="USD"></price> <<<< $ value missing <shipping-restrictions> <allowed-areas> <us-country-area country-area="ALL"></us-country-area> </allowed-areas> </shipping-restrictions> </flat-rate-shipping> </shipping-methods>

XML failed to validate against the schema at line: 26, column: 26, with error: cvc-datatype-valid.1.2.1: '' is not a valid value for 'decimal'.
XML failed to validate against the schema at line: 26, column: 26, with error: cvc-complex-type.2.2: Element 'price' must have no element [children], and the value must be valid.

while GCO is expecting a value for shipping
<price currency="USD">9.00</price>

can anyone suggest a) how to get ZC to include a value here, or b) suggest what setting I may have changed .. I have for shipping options table rate and UPS..

Enable Table Method: True
Shipping Table: 45:8,45.01:0
Table Method: price
Handling Fee: 0
Tax Class --none--
Tax Basis Shipping
Shipping Zone --none--
Sort Order 0

this used to work ..... help !!! (please)

try this, change in googlecheckout/gcheckout.php line ~335

            else {
               $price = $googlepayment->getShippingPrice($module_name, $cart, $quote['methods'][0]['cost'], $handling, $table_mode);
                $gcheck->element('price', $price, array ('currency' => 'USD'));
            }
```with 
```php
            else {
                $module = new $module_name;
                $quote = $module->quote($method);
                $price = $quote['methods'][0]['cost'];
                $gcheck->element('price', $price, array ('currency' => 'USD'));
            }

im working on this to support any shipping module with just declarating it at googleckeckout class.

ill post here when any new update is uploaded in the SVN

ropu

14 Dec 2006, 4:44 PM
#374
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)

Woodymon:

To Google developers (ropu, etc):

We all appreciate your efforts

I second this wholeheartedly!

14 Dec 2006, 8:46 PM
#375
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)

ropu:

Woody, thanks for the advise on the version matter. ill take note on it, and change it for any new version

please know that version 1.0.5 is a prerelase for testing. im being really busy this weeks. im looking at the bugs all of you reported and try to fix ir as soon as possible.

regarding softgoods, is not in the agenda right now, i must have a look, but there are other important issues to solve before adding a new functionality.

ropu

change log from ver 1.0.4 to 1.0.5
files changed
/admin/orders.php
/admin/includes/functions/extra_functions/added_function_for_google_checkout.php
/googlecheckout/gcheckout.php
/googlecheckout/responsehandler.php
/googlecheckout/xmlbuilder.php
/googlecheckout/xmlparser.php
/includes/modules/payment/googlecheckout.php

files added
/googlecheckout/googleresult.php
/googlecheckout/googlemerchantcalculations.php

ropu

15 Dec 2006, 12:08 AM
#376
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:

change log from ver 1.0.4 to 1.0.5

Ropu,

Thanks for providing this helpful changelog info!

Another question:

Noting that the mod will not be supporting instant downloads anytime soon, can anyone suggest techniques on how to filter out certain products (e.g. downloadables) so they cannot be purchased with GCO. I can post "warning" notes throughout the site and on productInfo and product_listing pages, but I'm hoping for something a bit more elegant.

When adding items to the shopping cart, maybe a compare can be done on the product database and if any product just added to the shopping cart has a specific "download" attribute option applied to it, the functions which controls the GCO button (makes it color/hot) not enable the button?

Or if this is inefficient can I manually maintain a list of "banned" product ID's (downloadable products) and/or Attribute ID's which can be screened against when customers add items to their shop cart? (We don't have many products so maintaining such a list manually not be a burden).

And when adding an item to the shopping cart maybe display a warning banner or flag of some sort reporting: "one or more products just added to your shopping cart is not available for purchase via Google Checkout, but is available through standard Zen Cart Checkout" or something to this effect.

I know these are some clunky ideas but half our products are books and the other half are downloads (eBooks/eDocs) and we really would like to utilize Google Checkout (for non-profit health information/education website).

Any and all ideas appreciated.

We do not currently utilize coupons or gift vouchers so can wait on the GCO mod supporting that functionality. But I'm likely not likely in the majority on this ;-)

Woody

15 Dec 2006, 1:08 AM
#377
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

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

Woodymon:

Noting that the mod will not be supporting instant downloads anytime soon, can anyone suggest techniques on how to filter out certain products (e.g. downloadables) so they cannot be purchased with GCO. I can post "warning" notes throughout the site and on productInfo and product_listing pages, but I'm hoping for something a bit more elegant.

You'll need something like this:

    if ($_SESSION['cart']->content_type == 'virtual') .... blah blah blah ...

... during checkout, if this is found to be 'virtual', it indicates that everything in the cart is not defined as a physical product. eg. only contains GV's or downloads or other virtual items.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

15 Dec 2006, 2:56 AM
#378
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)

I just got another sale through GoogleCheckOut. That's 2 in the 3 days that I've had it installed.

The significance of this is that I have not been getting sales that frequently even though I offer merchant card payments and PayPal.

I think that means that GCO is stepping in where the planned-but not-yet-built ability for customers to buy without creating accounts directly in our zen carts would have been. These customers are going directly to GCO from their shopping carts, while they are still in Guest mode. The fact that they can (and do) complete their transactions while a Guest is a great boon to us.

15 Dec 2006, 10:42 AM
#379
bbg avatar

bbg

New Zenner

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

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

I finally got the GoogleCheckout v1.05 module working properly on a (relatively) fresh install of Zen Cart v1.3.6. I thought I'd share a couple problems that came up (and solutions that worked for me) in case someone else encountered the same issues:

Problem #1: USPS calculated shipping was always returning the lowest value in Google Checkout, regardless of the weight of the items in the shopping cart. For example, Priority Mail would always show $4.05 (my default value set for Priority Mail in the ZC GC Payment GUI was $8.10 so I knew it was using a calculated value, and not the default).
Solution #1: I added $total_weight to the list of global variables on line 353 in googlecheckout/responsehandler.php. I also added $total_count to the same line, however it didn't seem to affect the shipping cost calculations (although I left it in there anyway).

Problem #2: Anything that is shipped within my same state needs to have the shipping taxed. When I set the USPS shipping module to add tax, the Google Checkout button would become disabled. In the README it stated that "if the shipping tax rates differ, a disabled Checkout button will appear on the Checkout page", which is exactly what was happening (but didn't tell me where I had to change it).
Solution #2: I updated the 2 hard-coded values in googlecheckout/responsehandler.php, lines 449 and 463, to the tax rate I had set up in the ZC Admin GUI.
Thanks to everyone that's been working on this module! Great job!

Shawn

15 Dec 2006, 9:29 PM
#380
anjordan77 avatar

anjordan77

Zen Follower

Join Date:
Jun 2006
Location:
Midlothian, Virginia, United States
Posts:
110
Plugin Contributions:
0

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

I'm thinking lots of customers are using this GCO because it's in perty colors and available right after they click on their last product that they added to their cart. I received one order the past however many days that had the persons contact info and also their phone number. This order went through with no glitches and had sizes and colors specified. I'm thinking this person logged into my website and decided to use google checkout instead of going thru the zen-cart checkout procedure.

Is there a way to make customers log into zen before they can checkout with GCO?

If so, this would save me about 15-20 reverse lookups, and anything i can on the internet to find a way to contact the person.