We had successfully integrated Barclay's Free ePDQ Payment Gateway and it works perfectly for some time. After a while we get erros like "Total amount is different to the sum of the details 13300.01/.01". This is rejected by the Payment Gateway. No clue as to why the amount is showing as $13300.01 while the totlal amount of the cart is only $0.01. The next time this is attempted, the amount still goes higher, as if some random number is being generated.
I have also same issue on my website. But I have solved this.
For that, please follow the following steps.
1. Go to this path : app/code/local/Juicy/Barclayspspid/Model
2. Open Submitform.php file.
$cost = sprintf('%.2f', $item->getPrice() - $item->getBaseDiscountAmount());
this line to
$cost = sprintf('%.2f', ($order->getBaseGrandTotal() - $item->getBaseTaxAmount()));
This is working for me.
I was also facing the same issue,thanks you very much
For your answer.