Monday, November 3, 2008

Google checkout Fast Track

I am currently working on an e-commerce website, as shopping cart is one of the most important part of such websites. There are different options available for receiving and processiong orders one them is service provided by google as "Google Checkout"

A quick Start

As most of the services there is a special development environment for the developers known as "Sandbox" u can rfere for a Proper introduction.

let me summarize things in steps:
  1. Create sandbox merchant Account(the seller) : http://sandbox.google.com/checkout/sell/.
  2. Create sandbox Buyer Account:http://sandbox.google.com/checkout
* for account credentials there are some restrictions same account can't be used , separate buyer and seller accounts are required, for details like sandbox credit card numbers etc visit.

Once The Accounts are set its time to move ahead:

  • log in to your Sandbox Merchant Account here .
  • get your sandbox merchant Id and key
SettingsTab-->Integration-->

Google merchant ID: xxxxxxxxxxxxxxxxxx
Google merchant key: xxxxxxxxxxxxxxxxxx
these are the basic requirement .

Basic Html Test:

  • To do this get the html code and save a new html file here .
replace:
https://checkout.google.com/api/checkout/v2/checkoutForm/Merchant/1234567890
by
https://sandbox.google.com/checkout/cws/v2/Merchant/[[Merchant-ID]]/checkoutform

and
http://checkout.google.com/buttons/checkout.gif?merchant_id=123456789
by
http://sandbox.google.com/checkout/buttons/checkout.gif?merchant_id=[[Merchant-ID]]

Then just click the button in the html file , it should take you to the Sanndbox checkout,

where you should login with your "Sandbox Buyer Account" . you have purchased a peanut butter.

If this test is successful now is the time to move onward.

Integrating The Google Checkout Using Xml Api on .Net Platform.

To do this quickly you need to find some library files i mean(DLLs) so you can make your life easier that what developers try to do, as i did i am thankful to the author of this libraray.

i want to thank All :
martin.omander, chanezon, joseph.feser, moman...@google.com

as this helped me alot this can be accessed at
http://code.google.com/p/google-checkout-dotnet-sample-code/

you can download GCheckout ,

it is very much useful to review the documentation before using this here

you will have to do some configuration and set the environment, then by referencing

the library create request and post you cart items via google checkout.

i hope this post may help you for quick start.