google-code-export / google-checkout-java-sdk

Automatically exported from code.google.com/p/google-checkout-java-sdk
1 stars 0 forks source link

Commas in quantity #50

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

If I set the quantity to greater than 1000 in an
com.google.checkout.checkout.Item, e.g.:

CheckoutShoppingCartRequest cart = new
CheckoutShoppingCartRequest(merchantInfo);
Item googleItem = new Item();
...
item.setQuantity(1000);
cart.addItem();

The shopping card prints out XML with a comma in the number:

<quantity>1,000</quantity>

The google checkout servers do not seem to like the comma though as I
get the following response:

<?xml version="1.0" encoding="UTF-8"?>
<error xmlns="http://checkout.google.com/schema/2" serial-
number="c7cd9903-8894-
45be-ac83-99019df438ee">
  <error-message>Error parsing XML; message from parser is: cvc-
datatype-valid.1
.2.1: '1,000' is not a valid value for 'integer'.</error-message>
</error>

Is this a bug?

Thanks,

Albert 

Original issue reported on code.google.com by simonjsm...@gmail.com on 7 Feb 2008 at 5:39

GoogleCodeExporter commented 9 years ago
Fixed in version 0.8.8

Original comment by simonjsm...@gmail.com on 29 Feb 2008 at 11:17