x252618759 / google-checkout-dotnet-sample-code

Automatically exported from code.google.com/p/google-checkout-dotnet-sample-code
0 stars 0 forks source link

Round money values so only two decimals are sent to Google #42

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
You can add items with prices in fractional cents, like $2.9995, to a cart. 
But that makes Google returns XML that can't be parsed, like 5.0E-4.

This problem would go away if the .NET sample code rounded all money values 
to two decimals before sending to Google.

Original issue reported on code.google.com by moman...@google.com on 11 Mar 2009 at 6:47

GoogleCodeExporter commented 9 years ago

Original comment by moman...@google.com on 12 Mar 2009 at 11:50

GoogleCodeExporter commented 9 years ago
I assume all prices need to be fixed.

Original comment by joseph.f...@gmail.com on 13 Mar 2009 at 12:21

GoogleCodeExporter commented 9 years ago

Original comment by joseph.f...@gmail.com on 22 May 2010 at 4:53

GoogleCodeExporter commented 9 years ago
Reopen this issue because we may no longer have a two decimal place limit.

Original comment by joseph.f...@gmail.com on 4 Aug 2012 at 5:17

GoogleCodeExporter commented 9 years ago
I talked directly to the Google Checkout team and they stated we must continue 
to truncate the value to two decimal places.

Original comment by joseph.f...@gmail.com on 8 Aug 2012 at 2:06