Google Inc. revealed the launch of Google Checkout, a checkout process that makes online shopping faster, more convenient and more secure for Google users. It offers an easy and trusted checkout option that enables shoppers to purchase from participating stores with a single Google login. Bypassing their traditional beta releases(years in beta stage) this time Google came up with fully functional and tested version because consumers would be unwilling to trust their bank accounts and credit cards to a beta version. It will serve as a centralized authorization service for customer purchases, promising the transaction security with industry-standard SSL technology.

Integrating your website with Google Checkout
To integrate your website with Google Checkout you can choose either simply by adding Google ‘Buy Now’ button to your site which will take you to the Google checkout page to complete the order or if one of Google’s e-commerce partners is currently providing your shopping cart application, you can integrate your shopping cart and order processing functionality with Google Checkout following these steps or if you are using different shopping cart you can integrate your current shopping cart with the Google Checkout API.

Checkout API
Google Checkout API is XML based API and the XML schema can be found at http://code.google.com/apis/checkout/apiv2.xsd. When you post any message to Google, you receive a reply right away as an HTTP response message. Before sending this response, Google checks the command’s XML against the Google Checkout schema, and checks the command’s arguments and state for validity. If the command is valid, the response is request-received; otherwise, the response is error. If the command is valid, Google then processes the command and returns a further result using the Notification features.

Here is the sample of simple checkout shopping cart XML:
<?xml version=”1.0″ encoding=”UTF-8″?>
<checkout-shopping-cart xmlns=”http://checkout.google.com/schema/2″>
<shopping-cart>
<items>
<item>
<item-name>HelloWorld 2GB MP3 Player</item-name>
<item-description>HelloWorld, the simple MP3 player</item-description>
<unit-price currency=”USD”>159.99</unit-price>
<quantity>1</quantity>
</item>
</items>
</shopping-cart>
<checkout-flow-support>
<merchant-checkout-flow-support/>
</checkout-flow-support>
</checkout-shopping-cart>

If the received XML is valid then you get the request received response as follows :
<?xml version=”1.0″ encoding=”UTF-8″?>
<request-received xmlns=”http://checkout.google.com/schema/2″
serial-number=”58ea39d3-025b-4d52-a697-418f0be74bf9″ />

If the reeceived XML is not valid the you get the error response as follows :
<?xml version=”1.0″ encoding=”UTF-8″?>
<error xmlns=”http://checkout.google.com/schema/2″
serial-number=”3c394432-8270-411b-9239-98c2c499f87f”>
<error-message>Bad username and/or password for API Access.</error-message>
</error>

Along with Checkout API Google also released Order Processing API, Notifications API and Merchant Calculations API to support the order processing features so you can move an order through the fulfillment cycle: capturing the payment, marking the order delivered, and so on.

The complete developer guide can be found at http://code.google.com/apis/checkout/developer/index.html.

Also the sample code to integrate the Google Checkout functionality with Java, ASP and PHP can be found at http://code.google.com/apis/checkout/samplecode.html.