We have created a WCM site for the client and this site uses custom payment gateway with Authorize.NET.
This WCM Sites payment processing screens works 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.
The code here -
public override PaymentGatewayResponse ProcessPayment(TransactionType transactionType, CPayment payment, CAddressBasic billingAddress)
{
CCAmount = payment.Amount;
}
I checked my logs and payment.Amount is coming in as 95,00(with a coma) instead of 95.00
Also the web.config entry is <globalization requestEncoding="utf-8" responseEncoding="utf-8" enableClientBasedCulture="true" culture="auto" uiCulture="auto" />
According to the MSDN article http://msdn.microsoft.com/en-us/library/bz9tc508(v=VS.80).aspx, this should take care of specific culture automatically.
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.
Any help or input will be appreciated.
| Attachment | Size |
|---|---|
| Currency problem.jpg | 307.77 KB |
This was classified as bug
This was classified as bug in iMIS which has been fixed in version 15.1.2.6042