Problem with localization for international users
Posted on 2011-03-21
I have a payment processing screen which work great for US based users. But for some users outside of US in Chile and Brazil, the amount of $95.00 comes in as $95,00 (with a coma) and that is processed as $9500.00 by Authorize.net.
Code is like this -
string CCAmount = payment.Amount.ToString("#######.00");
How do I fix this localization issue.
Side note - Even the date came in as - '18-03-2011 16:23:24' but date is not a problem as I can handle that. I am not sure how to handle the amount part.