Ah..... found the problem
First issue is that I was NOT looking at my Integration
Console -
DUH!!!
The problem was that when specifying the shipping
information I did
not include a currency for the Shipping method. By default,
if you
don't specify a currency it will default to USD. So if your
account in
not in America, then you will get an error.
I'm not sure why I was getting the xml message about invalid
agent?
Must have been part of a different issue.
On Feb 22, 10:16 am, firewalker <gra... ponderingfool.co.uk> wrote:
> Hi,
>
> I have looked in the other posts to find an aswer to
this problem, but
> cant. I AM using my correct sandbox Merchant ID and
have also
> unchecked the API Security checkbox in Settings, so
cant see where the
> problem is.
>
> a BuyNow Button works just fine, so there cant be
anything wrong with
> my sand box merchant account.
>
> The responce in firefox is:
>
> -<error
serial-number="5a4199b9-4352-4bf4-940b-5fd127a911b1&quo
t;>
> -<error-message>
> Malformed URL component: expected Invalid
agent, but got
> 843044289981234
> </error-message>
> </error>
>
> Many Thanks for your help.
>
> Code is:
>
> <form method="post"
accept-charset="utf-8" action="https://
>
sandbox.google.com/checkout/api/checkout/v2/checkoutForm/
> 843044289981234" >
>
> <input type="hidden" value="Peanut
Butter" name="item_name_1" />
> <input type="hidden" value="Chunky
peanut butter."
> name="item_description_1" />
> <input type="hidden" value="1"
name="item_quantity_1" />
> <input type="hidden"
value="12.50" name="item_price_1" />
> <input type="hidden"
value="GBP" name="item_currency_1"
/>
>
> <input type="hidden" value="Royal
Mail First Class"
> name="ship_method_name_1" />
> <input type="hidden"
value="2.50" name="ship_method_price_1"
/>
>
> <input type="hidden" value="Royal
Mail Second Class"
> name="ship_method_name_2" />
> <input type="hidden"
value="1.75" name="ship_method_price_2"
/>
>
> <input type="hidden"
value="International"
name="ship_method_name_3" /
>
> <input type="hidden"
value="4.50" name="ship_method_price_3"
/>
>
> <input type="hidden"
name="_charset_" />
> <input type="image" height="46"
alt="Fast checkout through Google"
> width="180" src="http://sa
ndbox.google.com/checkout/buttons/
> checkout.gif?
>
merchant_id=843044289981234&w=180&h=46&a
mp;style=white&variant=text&loc=en_US"
> name="Google Checkout" />
> </form>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "API Integration Basics" group.
To post to this group, send email to
google-checkout-api-integration googlegroups.com
To unsubscribe from this group, send email to
google-checkout-api-integration-unsubscribe googlegroups.com
For more options, visit this group at http://groups.google.com/group/google-checko
ut-api-integration?hl=en
-~----------~----~----~----~------~----~------~--~---
|