“Suspected Fraud” status after compeleting the payment in magento?

后端 未结 2 1572
孤独总比滥情好
孤独总比滥情好 2021-01-16 17:00

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

2条回答
  •  再見小時候
    2021-01-16 17:33

    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.

提交回复
热议问题