I have made my custom module in magento, in which I have set discount in dynamically. I am using following code for this. But when I have completed the payment procedure, th
It takes me a long time to solve this 0.10 error,
So I will share with you what was the problem in my case:
In:
/app/code/core/Mage/Paypal/Model/Cart.php
There is a _validate
function in which PayPal checks the difference between $sum
and $referenceAmount
.
I replace it with:
if (sprintf('%.4F', $sum) == sprintf('%.4F', $referenceAmount)) {
$this->_areItemsValid = true;
}
I found it in a Magento backup before the upgrade.