Google Checkout for checkout

alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Sun, 2008-08-10 21:14

I'm wrapping up the first draft of a new payment method for the checkout series of modules that provides full integration with the Google Checkout merchant service.

That means I'm looking for a few volunteers who can help by installing and testing it.

It requires:

  • Gallery 2.3RC1, or (2.2.5 that you don't mind hacking by adding a single core file from 2.3RC1)
  • https:// access to your gallery installation. That doesn't have to be via the main gallery url; for both of my online installations with different hosting providers (1and1 and hostmonster) there are free 'shared certificate' urls that reach the gallery sites. For instance for hostmonster it's https://hostXX.hostmonster.com/~<myhostname>
  • Two Google Checkout sandbox accounts set up - one merchant one seller (or a willingness to create them) for testing. Or you can use your real credit cards but don't blame me.
  • Familiarity with the existing checkout integration with, for instance, PayPal, so you can state with confidence that any problems are coming from the new installation and not pre-existing.
  • A generous spirit.

    If that's you and you can help, drop me a pm so I can send you the code.

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Tue, 2008-08-12 13:30

Ok... Nothing so far... the net was obviously cast too narrowly. How about I drop the requirement for a generous spirit then?

 
paulcobb

Joined: 2006-05-04
Posts: 122
Posted: Thu, 2008-08-21 10:26

Alec,
I'll get back to you asap to help things along.

Paul

 
CHOCKYMONSTER

Joined: 2008-09-18
Posts: 4
Posted: Wed, 2008-09-24 08:54

Alec,

are you still looking for volunteers?
If so, I can help

Paul

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Wed, 2008-09-24 09:05

Paul,

I finished the module alone and uploaded it to the repository and now I have it installed, and working, and I've taken orders through it. Not many - people seem to prefer paypal - but it works for me. If you can try it out (as I think you already have) and let me know how it goes that would be very helpful. Since Gallery depends on a lot of variables like hosting setups there might issues for other people that don't occur on my website, so I shall look forward to hearing how it goes.

 
CHOCKYMONSTER

Joined: 2008-09-18
Posts: 4
Posted: Thu, 2008-09-25 10:23

Alec,

I've just moved hosts and have setup checkout and have successfully placed orders through the sandbox.
All looks good to me.
I'm not a coder but if you need help testing in future then give me a shout.

Paul

 
edwardtn

Joined: 2008-09-27
Posts: 21
Posted: Sat, 2008-09-27 23:52

Alec,

I have installed 2.3RC1, have checkout 0.4 working, have paypal checkout working. I am looking to add google checkout option, but have a question. My hosting is through Brinkster. They offer shared SSL, but in a folder outside the webroot called 'secure'...could the scripts needed for google checkout be located there, or what. I do not want my entire site to be https.

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Mon, 2008-09-29 18:29
Quote:
..could the scripts needed for google checkout be located there, or what. I do not want my entire site to be https.

Gallery only has one 'script' - which is "main.php". Every other piece of code is loaded and executed when and where necessary by main.php. And the directory structure of Gallery depends on everything like the modules and themes directories being directly 'below' main.php.

I don't know if you can do some nasty hack with symlinks, or using php to run main.php, but you'll have to sort out problems with paths. The good news is that for checkoutgoogle (only) purposes your access via https:// doesn't have to include theme files, css files or other random includes. But it does need to reach main.php and via the correct path too, for all the relevant Gallery classes to load.

 
edwardtn

Joined: 2008-09-27
Posts: 21
Posted: Mon, 2008-09-29 23:09

Thanks, I am going to try to place a bare minimum of gallery files inside the secure folder. I'll change the google checkout to post to the secure main.php. I'll let you know if this works at all...lol.

 
edwardtn

Joined: 2008-09-27
Posts: 21
Posted: Mon, 2008-09-29 23:27

I have tested this, the google checkout button forwards to a copy of main.php in a secure folder.

I receive the following message:

Security Violation

The action you attempted is not permitted.

Back to the Gallery

I am actually encouraged that there was not an actual 'error' accompanying the message, perhaps there is a way to supress it.

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Tue, 2008-09-30 08:15
Quote:
I have tested this, the google checkout button forwards to a copy of main.php in a secure folder.

This is the wrong way forwards.

The only https:// access you need to be concerned with is the url you enter in the checkoutgoogle setup page and the test button next to it. If you can get that test to succeed, then you're good to go. There's no point fiddling with anything else.

Also please have a look at the new instructions I've added at: http://codex.gallery2.org/Gallery_2:Modules:checkoutgoogle#Configuring_your_Apache_Webserver