I am working with google checkout and currently working at sandbox environment. I have used Paypal and i thought google checkout should work like the same. but i wonder that google checkout is not posting back the HTML form field on return URL and im not able to find any proper solution for this problem yet. Here is my code.
Expand|Select|Wrap|Line Numbers
- <form method="POST"
- action="https://sandbox.google.com/checkout/api/checkout/v2/checkoutForm/Merchant/SOMEID">
- <input type="hidden" name="item_name_1" value="Add to My Page"/>
- <input type="hidden" name="item_description_1" value="Add Pgae"/>
- <input type="hidden" name="item_quantity_1" value="1"/>
- <input type="hidden" name="item_price_1" value="35"/>
- <input type="hidden" name="ship_method_currency_1" value="GBP"/>
- <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.continue-shopping-url" value="http://www.mydomain.com/gcheckout_success"/>
- <input type="hidden" name="shopping-cart.merchant-private-data" value="MyOrder#123">
- <input type="hidden" name="_charset_"/>
- <input type="image" name="Google Checkout" alt="Asian Wedding - Checkout"
- src="http://sandbox.google.com/checkout/buttons/checkout.gif?merchant_id=SOMEID&w=180&h=46&style=white&variant=text&loc=en_US"
- height="46" width="180"/>
- </form>
I just need to pass some ID in a custom field so that on return URL I can get it back and then change my database on the basis of this ID. There is one thing which is important that Upon return google checkout is destroying sessions also and there is no value stored in sessions. This made a big problem for me. So please tell me how i can get that custom ID back from google checkout.
Thanx.