cancel
Showing results for 
Search instead for 
Did you mean: 

Magento with Free Barclay's ePDQ PG. Error - "Total is different to the sum of details 1330.01/.01"

Magento with Free Barclay's ePDQ PG. Error - "Total is different to the sum of details 1330.01/.01"

Hi Friend,

 

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.

 

Please help!!!

2 REPLIES 2

Re: Magento with Free Barclay's ePDQ PG. Error - "Total is different to the sum of details 1330

Hello,

 

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.

3. Change

$cost = sprintf('%.2f', $item->getPrice() - $item->getBaseDiscountAmount());

this line to

$cost = sprintf('%.2f', ($order->getBaseGrandTotal() - $item->getBaseTaxAmount()));

 

This is working for me.

Thanks

Re: Magento with Free Barclay's ePDQ PG. Error - "Total is different to the sum of details 1330

I was also facing the same issue,thanks you very much 

 

For your answer.
Thanks Khushal.