Bug in eWayPaymentProcess class

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Il y a 14 ans
Hi,

I just came I across what I believe is a bug in the eWayPaymentProcess class.

In the ProcessPayment method the following line causes an error conversion.


eWAYRequest.InvoiceAmount = Convert.ToInt32(paymentInfo.OrderTotal);


When the order is $52.08, when converted using the above line its turned to 52, which I believe should be 5208.

I have done the following:


eWAYRequest.InvoiceAmount = Convert.ToInt32(paymentInfo.OrderTotal*100);


Can someone please clarify this?

Cheers,

Jalal
Il y a 14 ans
Jalal, what you did was right. I thought the * 100 issue had been fixed.

eWay, like many other payment providers want the whole amount in cents.

Al
Il y a 14 ans
kool thanks for the reply Al
Il y a 14 ans
This bug was fixed in nopCommerce 1.30 (the amount is passed in cents). Presume that "j-r" is using nopCommerce 1.20
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.