Claytondus.AmazonMWS icon indicating copy to clipboard operation
Claytondus.AmazonMWS copied to clipboard

Malformed Input

Open kevinvenclovas opened this issue 4 years ago • 1 comments

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 avatar Jun 29 '20 14:06 kevinvenclovas

@claytondus Can you merge this to master please?

kevinvenclovas avatar Dec 01 '20 11:12 kevinvenclovas