claytondus / Claytondus.AmazonMWS

.NET Standard fork of Amazon MWS client
https://developer.amazonservices.com/
Apache License 2.0
33 stars 12 forks source link

Malformed Input #13

Open kevinvenclovas opened 4 years ago

kevinvenclovas commented 4 years ago

Hi, now i got the issue after come back again.

You need to recode the WriteFragmentTo in the Claytondus.AmazonMWS.Products.Model.MoneyType class. With the german localization the ".ToString" function convert the decimal "Amount" -> 12.99M to 12,99 but amazon need the dot version 12.99 .

So you need to change : writer.Write("Amount", _amount);

to

writer.Write("Amount", _amount?.ToString(CultureInfo.InvariantCulture));

and it works for EUR. Please test it also for USD account. I can't test this without a USD account

kevinvenclovas commented 3 years ago

@claytondus Can you merge this to master please?