Post by crypsoft » Tue Apr 15, 2008 1:48 am

First of all...Thank you to those who have brought us Open Cart!  I love it for it's simplicity to the end user and for the ingenious code that lies under the hood. 

Yesterday and the day before, I set out to develop a google checkout payment extension for Open Cart v0.7.7.  My ultimate goal is to get it to level 2 integration with XML web services support.  I was successful with the initial level 1 integration but it of course requires manual processing of the google checkout orders (but it's a good start I think). 

Next weekend, I'll be working towards getting the full level 2 integration working.  I have my web service set up, and I just need to add the logic to parse and handle all the different messages sent by the google checkout system.

If anyone is interested in the level 1 integration as it is now, I can work towards putting together all the files and steps needed for the integration. 

Here's a picture of the configuration page in the admin part of the site:

http://www.flickr.com/photos/25657278@N03/2414203794/


If I missed any needed parameters, please reply to this topic with suggestions.

Thanks.
               
Last edited by crypsoft on Tue Apr 15, 2008 4:49 am, edited 1 time in total.

crypsoft


Post by crypsoft » Mon Apr 21, 2008 8:26 pm

Update: as of 4/20/2008...

I have the buy now, and regular google checkout buttons working (as well as the default google checkout radio button on checkout_payment).  I'm currently working on building the gco_service.php (xml web service file) to handle all the google web service communications for customer and order creation and subsequent updating of the relevant tables in the database.  I'm going for gold...level 2 xml integration with ssl signed communications back and forth.  I'm working towards completion in the next week or so. 

Stay tuned if your interested...

Cheers,
Dave 
Last edited by crypsoft on Fri Apr 25, 2008 2:54 am, edited 1 time in total.

crypsoft


Post by crypsoft » Fri Apr 25, 2008 3:29 am

Update: as of 4/24/2008...

I have successfully processed the new-order-notification from the google web service.  The customer is automatically created using the information from their google account billing address.  The order information is then inserted into the order, order_download, order_product and any other applicable tables (can't recall the other ones).  I also created a new table named 'order_google_order' for the binding of the google order number to the order number that is created in the opencart database (for subsequent notification processing).

I almost have the order-state-change notification processing working.  For now, I'm making it so that when I get the order-state-change notification from the google web service, and it has a new-financial-state of 'CHARGED', then the order_status_id field of the order table is updated to 'Complete'.  So, if it's a digital delivery product (as it is for me), then the download would then be available if you have it set to be available upon order completion.

After I get those two key parts of the processing working fully, the rest should be pretty easy.           

crypsoft


Post by jocroft » Sun Apr 27, 2008 8:01 am

I eagerly await this - I wish I had the capabilities to help!

Google checkout is cheaper for the merchant after all!

Look forward to being able to add it to my site.

Thanks

I know you think you understood what I said, but what you heard was not what I meant


New member

Posts

Joined
Thu Mar 13, 2008 9:03 pm
Location - England

Post by lev » Thu May 01, 2008 1:38 am

cryptsoft, please share the code. I would love to intergrate the google checkout into my storefront. its for a non-profit so anything extra im able to save them will go to a good cause and their merchant charges much more than google.

I may also be able to find areas to improve  :D
either way would love to see the code

lev
New member

Posts

Joined
Wed Apr 30, 2008 10:47 pm

Post by crypsoft » Fri May 02, 2008 10:48 pm

If there are other programmers out there that simply want to see what I've done so far...and want to contribute to the effort, let me know and I can try to get everything posted on Sunday (May 4th). 

Otherwise, it might be another week or two before I will have the time to at least almost finish the integration.  As it is currently, it works for me, but  in a limited fashion...only with the buy now buttons (ie. one product at a time).  Well, actually, the google checkout button and opencart payment method of google checkout also works, but there is an issue when more than one product is in the cart (so I disabled that for now).  And, on top of that, so far, I haven't paid much attention to merchant calculations, coupons, or discounts, etc. 

It will also take some time to put together the steps for how to do what I've done.  Does anyone have any pointers on how to create an installable module?  Is there some way to package all the files I've changed for the integration so that it's easy for anyone else to install the changes into their environment? 

Thanks,
Dave
Last edited by crypsoft on Fri May 02, 2008 10:52 pm, edited 1 time in total.

crypsoft

Who is online

Users browsing this forum: No registered users and 3 guests