
gchecky
gchecky
Gchecky is a library written in python for using Google Checkout Level 2 Integration XML API. It makes it easy to integrate your order processing system with Google Checkout and ensure that all the interactions with checkout servers are automatically validated, converted from python values to XML (and back) and checked for errors - all that is done by gchecky underneath.
With gchecky an order creation is as easy as writing:
gchecky.model import *
cart = controller.prepare_order(
order = checkout_shopping_cart_t(
shopping_cart=shopping_cart_t(
items = [item_t(
name='Tom photo',
description='A beautiful photo of my cat Tom',
unit_price=price_t(
value=.99,
currency='USD'),
quantity=1)],)))
print cart.html()
Order notification processing is as easy. In your code you manipulate python objects, which mimic Google Checkout XML API messages. Gchecky does all the necessary validation and conversion to/from XML on the fly.
Demo
http://demo.gchecky.com/ is a demo django project that demonstrates the usage of gchecky. Source code of the demo is one of gchecky samples.
Documentation
Project documentation is generated from inline docs in the source code.
Current status
A version 0.2 will soon see the light. It will contain a working django project with samples for three type of GC usage: * digital content * donations * normal items internet shop yet to be completed All three have custom order processing system - a simple one. It will demonstrate the usage of gchecky.
Project Information
- License: Apache License 2.0
- 14 stars
- hg-based source control