3 messages in com.googlegroups.google-checkout-api-ukRe: Has anyone got UK tax working yet?
FromSent OnAttachments
chri...@gmail.com20 Jul 2007 03:51 
chri...@gmail.com20 Jul 2007 06:37 
Ropu20 Jul 2007 11:53 
Subject:Re: Has anyone got UK tax working yet?
From:chri...@gmail.com (chri@gmail.com)
Date:07/20/2007 06:37:24 AM
List:com.googlegroups.google-checkout-api-uk

I've answered my own question,

Here's the code I'm using, note that the merchant id goes in the form action

<form method="POST" action="https://sandbox.google.com/checkout/cws/v2/ Merchant/my-merchant-id-here/checkoutForm" accept-charset="utf-8">

<input type="hidden" name="buyButtonCart" /

<!-- this field has

to be here or it won't work --> <input type="hidden" name="item_name_1" value="product-name"/> <input type="hidden" name="item_description_1" value="product description"/> <input type="hidden" name="item_quantity_1" value="1"/> <input type="hidden" name="item_price_1" value="21.277"/

<!-- the pre tax value, in this case

21.277 + VAT at 17.5% is £25 --> <input type="hidden" name="item_currency_1" value="GBP" /

<!-- by default the currency is USD, add

this if your account is set up for GBP -->

<input type="hidden" name="_charset_"/>

<!-- these two input fields define VAT at 17.5%, and that you're in GB -->

<input type="hidden" name="checkout-flow-support.merchant-checkout- flow-support.tax-tables.default-tax-table.tax-rules.default-tax- rule-1.rate" value="0.175"/> <input type="hidden" name="checkout-flow-support.merchant-checkout- flow-support.tax-tables.default-tax-table.tax-rules.default-tax- rule-1.tax-area.postal-area.country-code" value="GB"/>

<!-- finally, just a button to say buy now, or whatever else you want it to say --> <input type='submit' name='Google Checkout' value='Buy Now' />

</form>