VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Development Projects, Modifications, Hacks & Tweaks. VM1.1 => Payment Modules => Topic started by: ptogel on June 29, 2006, 19:51:20 PM

Title: Google Checkout
Post by: ptogel on June 29, 2006, 19:51:20 PM
Are there plans to integrate Google Checkout? I would love to see it.....

Peter
Title: Re: Google Checkout
Post by: 805tech on June 30, 2006, 04:18:50 AM
implement google checkout please. once you have it all set up, contact Google and let them know, so they can add VirueMart to their list of "Shopping Carts that work with Google Checkout"

Let me know if you need any help with anything!

Thanks so much, keep up the good work!

Title: Re: Google Checkout
Post by: Simon A. on July 01, 2006, 07:40:20 AM
Looking into it now.

Google has a bunch of PHP code:
http://code.google.com/apis/checkout/samplecode.html

It requires PHP 4.2, the PHP dom_xml extension, as well as the PHP libcurl extension.
Title: Re: Google Checkout
Post by: Simon A. on July 02, 2006, 15:31:24 PM
Turns out that it's a bit of a pain, as Google Checkout requires you to enter all sorts of information about the order: order items, coupons, shipping. Then they calculate the total and run you through a checkout process. It's not nearly as smooth a process as PayPal.

Still plugging away at it, though.
Title: Re: Google Checkout
Post by: koltz on July 02, 2006, 16:40:21 PM
Great thing I see with Google Checkout is no monthly fee like most others like PayPal with a $20 monthly.  I think the best thing for Google to do this is making PayPal accountable and probably will eliminate their monthly fee.

Good luck on trying to get it to work, would be a benefit to the community.

Corey
Title: Re: Google Checkout
Post by: Simon A. on July 02, 2006, 18:11:08 PM
I have a business account with PayPal and pay no monthly fees. PayPal's 2.9% + US$0.30 per transaction is steeper than Google's rates though, 2% + US$0.20 per transaction.

The big bonus comes if you advertise with Google AdWords. They give you free transactions if you advertise with them.

Here are PayPal's rates:
https://www.paypal.com/us/cgi-bin/webscr?cmd=_display-receiving-fees

Google's rates:
http://checkout.google.com/support/sell/bin/answer.py?answer=30724&ctx=sibling
Title: Re: Google Checkout
Post by: koltz on July 02, 2006, 18:29:32 PM
I was talking about PayPal Payments Pro to use their credit card processing.
Title: Re: Google Checkout
Post by: mavric on July 03, 2006, 03:19:29 AM

I would be interested in seeing this offered for VirtueMart as I have never been a fan of PayPal and I also use AdWords which would be a bonus....
Title: Re: Google Checkout
Post by: 805tech on July 04, 2006, 02:34:59 AM
im excited to see that you're taking an interest in implementing google checkout. I am confident that getting the process out of the way right now is going to be best as google forsees almost 60% of carts to integrate GoogleCheckout. In fact, adding Google payments with your cart will probably draw more merchants toward using your cart software, as GoogleCheckout does have unbeatable rates. Perhaps you could even integrate an Adword generator for shopping cart items?

Just keep us posting, im checking back every day because WE NEED THIS!!!

keep up the good work
Title: Google Checkout SUCKS
Post by: Simon A. on July 04, 2006, 21:31:48 PM
I've spent a fair amount of time working on this, and have it working reasonably well.

EXCEPT I've solved the wrong problem. My mistake was assuming that Google Checkout is a payment service, like PayPal, or a CC gateway. I created a new payment class, and added it to the database, so that at the end of the checkout process, the customer would have the option to pay with Google, PayPal, Credit card, and so on.

But that's not how the big G wants it. You see, they require you to use them as your shopping cart as well. Take a look at their policies:
http://checkout.google.com/seller/policies.html

Here's a good one:

And how about these gems:


They want to control the entire checkout process. What a pain.
Title: Re: Google Checkout
Post by: Firestar on July 04, 2006, 23:25:03 PM
How sad. I'm starting to wonder if I'll implement this! I have no intention of doing all of those things. I just want a payment processor!

This is bad news indeed. And knowing Google, it's not going to change for our benefit. :(
Title: Re: Google Checkout
Post by: Cameron on July 06, 2006, 15:32:08 PM
Hey don't give up now.
The whole community needs this.
Anything worth doing is not easy. Ever.
Just keep going we are cheering you on. :)
Title: Re: Google Checkout
Post by: Firestar on July 06, 2006, 16:41:07 PM
Ok, well. I had a chat to a few people and I figured this out.

The idea is not to replace our existing shopping cart with Google, but to add Google IN ADDITION to our shopping cart process. The idea is that google will be a parallel process to our shopping carts and users can choose which one they want to use. Obviously, this makes it almost infinitely more complex to code (or use if you don't want to code it), since this means that you'll have to either make use of two order screens to maintain orders or somehow get your orders into google (which I don't think will be possible) or get Google's orders into our order backend.

Either way, it's gonna be quite a complex thing to do...

If you need any help, please feel free to shout. I don't know much, but perhaps I can help. I take it that by this message you see that I now do want to implement this as soon as it's available for my country.

Cheers
Firestar
Title: Re: Google Checkout
Post by: koltz on July 06, 2006, 17:05:58 PM
Something like the normal PayPal system, but Google "requires" more information.  I wonder if they would actually check for coupons and such if you implemented it.

Corey
Title: Re: Google Checkout
Post by: Simon A. on July 07, 2006, 04:30:05 AM
Still going on it. Needed a little time off to ponder after finding out how badly I had screwed it up.

If you want to encourage me, visit my site and place an order, and encourage your friends to do so. PayPal is accepted.

http://www.bigbluesaw.com/
Title: Re: Google Checkout
Post by: Simon A. on July 09, 2006, 19:36:39 PM
Well, I've deployed it. There might be bugs, and my solution definitely won't work for everyone. In particular, taxes and shipping are under-implemented, but work for me.

Try it out:
http://www.bigbluesaw.com/

I'll have code for you sometime this week.
Title: Re: Google Checkout
Post by: 805tech on July 10, 2006, 10:15:57 AM
i cant get to a checkout page heh. but i'll take your word for it. thanks for your help btw, this is going to be of value for TONS of people.
Title: Re: Google Checkout
Post by: Simon A. on July 11, 2006, 14:50:38 PM
Here's the code. Beware of bugs. The shipping implementation probably won't do what you want, and taxes are completely unimplemented.

Instructions:
Unpack the ZIP file into your base directory.
Patch shop.cart.php with the provided patch file.
Install ps_google as a payment module, but do not set it as "enabled".
Configure the Google payment module with your Google Checkout merchant id and merchant key.

Visit http://www.bigbluesaw.com/ for an implementation.


[attachment cleanup by admin]
Title: Re: Google Checkout Plug-In available
Post by: joombo.ph on July 12, 2006, 06:33:09 AM
Hello guys,
We are also big fans of virtuemart. This is why, even google checkout is not available in our country, we developed a plug-in. Hoping that google will soon expand checkout to other countries.
We created so far a beta version that will work well with PHP5 and used the php class from Greg (http://www.gregphoto.net/index.php/2006/07/01/experimenting-with-google-checkout-and-php/).

In the next days we will add a customer privacy protection. With this your clients can choose to send google the whole shopping cart or just a generic item name and description with the total amount. Because we believe that not every client wants to be profiled by google who/where/when/what bought.
The download and suggestions for further development will be under Open Projects: http://www.joombo.ph/ (a joomla community in the Philippines).
I hope there are some beta testers around who can help us to further improve it. :)
Title: Re: Google Checkout
Post by: r0tt3n on October 06, 2006, 17:26:05 PM
While I'm not entirely on-board with Google's intentions in regards to their Checkout service, and I think the rest of the world has agreed too that Google Checkout's requirements are a bit of a pain, and thus adoption rate has been slower than expected, I can understand their motives.  Shopping is still not easy for the average user, but it would be a heck of a lot safer and simpler for the customer if the checkout process was managed by something secure and familiar - Google Checkout.  A side benefit is that the results of advertising potentially can be tracked a lot more closely, potentially leading to the holy grail of online advertising - pay-per-sale, which is simply not possible any other way than having Google orchestrate the checkout itself.

So, all that said, I would very much like to have google checkout as an option for my store, and I think a lot of other people would as well, not to mention the benefit associated with having that Google Checkout logo appear beside my website's name when it is shown in search results.  So, I'm very curious...

Has been any significant progress made in the effort by chroma or others in improving the support for Google Checkout in VirtueMart?
Title: Re: Google Checkout
Post by: Simon A. on October 06, 2006, 18:30:49 PM
Well, it works for me, so I'm not too motivated to improve it any more.
Title: Re: Google Checkout
Post by: koltz on October 06, 2006, 18:42:16 PM
There is another version at Joombo.ph, but requires PHP5.1.4 or higher installed.  I have tested it, but I  only have PHP4 installed so when I get to the final checkout area, the screen goes blank.

Corey
Title: Re: Google Checkout
Post by: Andy25 on December 06, 2006, 23:22:30 PM
Google has now announced they are waiving ALL fees until the end of 2007.

Now more than ever, being able to use Google Checkout with Virtuemart would be a huge benefit.
Title: Re: Google Checkout
Post by: ndondo on December 23, 2006, 21:50:20 PM
Quote from: chroma on July 11, 2006, 14:50:38 PM
Here's the code. Beware of bugs. The shipping implementation probably won't do what you want, and taxes are completely unimplemented.

Instructions:
Unpack the ZIP file into your base directory.
Patch shop.cart.php with the provided patch file.
Install ps_google as a payment module, but do not set it as "enabled".
Configure the Google payment module with your Google Checkout merchant id and merchant key.

Visit http://www.bigbluesaw.com/ for an implementation.


hey I am not sure how to patch the shop.cart
could you help me with more details where to add the code pls
thanks ...

Title: Re: Google Checkout
Post by: fidel on January 08, 2007, 10:25:20 AM
Does anyone other than Blue Saw have a Virtuemart site as an example of Google Checkout?
Title: Re: Google Checkout
Post by: nealbaker on January 17, 2007, 08:16:54 AM
Quotehey I am not sure how to patch the shop.cart
could you help me with more details where to add the code pls
thanks ...

I'm in the same boat. It looks like the patch is for several versions of the php.shop file. Is that correct? If so, any chance on getting an updated patch? Also, what is the proper procedure to complete this patch?

Thanks for any help you can provide.
Title: Re: Google Checkout
Post by: John Patrick on January 18, 2007, 03:48:48 AM
Has anyone looked at the goolge checkout mod for zencart?

It should be possible to convert zencart modules to work with virtuemart.
Title: Re: Google Checkout
Post by: Simon A. on April 20, 2007, 04:48:13 AM
Sorry everybody, I haven't checked this thread in a long time.

I've been told that my Google Checkout software will only work on PHP4.

Anyway, if you want to patch shop.cart, just insert the following code into the file somewhere near the bottom:

   <?php
                ini_set("include_path",          ini_get("include_path").":".$mosConfig_absolute_path."/administrator/components/com_virtuemart/classes/payment/googleCheckout");
                include ("checkoutButton.php");
                echo googleCheckoutButton($cart);
     ?>     
Title: Re: Google Checkout
Post by: Sean Goodwin on May 02, 2007, 01:34:26 AM
i run google checkout on my site with virtually no problem except that the shipping tax is not passed across. BUt hey that can be fixed by increasing the charge to include tax.

http://www.wesellslush.com
Title: Re: Google Checkout
Post by: Simon A. on May 02, 2007, 02:20:56 AM
Sean Goodwin:
Make sure that you're following Google Checkout's policies. I mention some problems that people have been having here:
http://virtuemart.net/index.php?option=com_smf&Itemid=71&topic=27206 (http://virtuemart.net/index.php?option=com_smf&Itemid=71&topic=27206)
Title: Re: Google Checkout
Post by: jackkeller on January 16, 2008, 23:34:23 PM
Everywhere I try to insert this portion I get this on the cart page:

Wed, 16 Jan 2008 16:23:55 -0600
Fatal error in line 133 of file/var/www/includes/frontend.php
- Non-static method mosCache::getCache() should not be called statically

I'm hoping that I don't have to edit the frontend.php portion, I try to use as few hacks as possible
Title: Re: Google Checkout
Post by: Simon A. on January 17, 2008, 01:13:52 AM
Probably a version difference in either PHP or VirtueMart.

This is an early hack; there are several versions out there now that are easier to use.

I recommend that if you're not up on your PHP hacking, you try to find another package to use for Google Checkout.