Google Checkout XSD File To Generate .Net class
|
|
|
|
|
If you follow Google Checkout Developer API documentation for Level Two Intergration, the first step it
asks you to perform is to create shopping cart XML structure with root node "checkout-shopping-cart". The
strcuture looks like as follows:
<?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>
Google has done a wonderful job of providing us with a XSD file that you can use to generate a C# or VB.Net class. Here
is simple procedure to do it.
- Download apiv2.xsd file from Google checkout site.
- Start Visual Studio 2005 command prompt.
- Type the following commands to generate C# or VB.Net file that you can include in your project.
For your convenience we have generate C# and VB.Net classes from this XSD file. You can download these files
from the following links.
|