openstream/SaferpayEcommerce — Issue #2: Rounding not correct
Author: elrafman
Created: 2012-03-07 16:10:04+00:00
State: open

Hi
when sending the order amount to the saferpay the amount is sometimes not rounded correctly

the calculation
intval(Mage::helper('saferpay_be')->round($amount, 2) * 100)
should be replaced by
intval(round(Mage::helper('saferpay_be')->round($amount, 2) * 100))
as you may have problems using intval with floating point numbers.

Cheers

Rafael