Jump to content

payment gateway not updating price


Recommended Posts

I am using payu payment gateway

When I purchase a product for the first time from a NEW Pc/Mobile device then the payment gateway redirects me to the secure page with the correct amount of the product.

When I purchase for the  SECOND Time a DIFFERENT Product from the same PC/Mobile then the payment gateway redirects me the the secure payment page with the same amount of the FIRST Purchase.


So the problem is that the payment gateway is not updating the payment amount when the products are changed.

The other payment gateways installed work correctly with no such issue

I have tried this on various computers and mobile devices.

I have cleared cache , disabled ccc and cache . I even deleted cache from the cache folder in the control panel.


What changes do I make in the code so that the changed AMOUNT gets redirected to the secure payment page and not the OLD AMOUNT .


I have attached the zip file of the payment gateway.


Share this post

Link to post
Share on other sites

in payment.php i added no-cache parameter:

$total = (float)($cart->getOrderTotal(true, Cart::BOTH, null, null, false));

If the old price appears, it's a cache issue, browser or CDN/APC/MemCache cache.

Share this post

Link to post
Share on other sites

Caching type used should be - Fie System or MySql?


And the following have been disabled 

Smart cache for CSS

Smart cache for JavaScript

Minify HTML

Compress inline JavaScript in HTML

Move JavaScript to the end

Apache optimization


And the following is used  in Cyphering

Use Rijndael with mcrypt lib. (you must install the Mcrypt extension)


what other changes do i make ?

Share this post

Link to post
Share on other sites

This topic is now closed to further replies.

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More