Developer forum

Forum » Ecommerce - Standard features » Shipping method fee not updating after CheckoutHandler payment cancelled

Shipping method fee not updating after CheckoutHandler payment cancelled

Mario Santos Dynamicweb Employee
Mario Santos
Reply

Hi there,

We ran into an odd situation when users go to the CheckoutHandler payment window and hit the cancel button (in this case is Authorize.Net).

When this happens, users are able to change the shipping method but the fee is not updated.
If we open the order in backoffice the fee is updated on frontend. If user reloads the page instead of hit cancel, the shipping fee is updated properly.
Do not know if this happens with other CheckoutHandlers or if it is the way Authorize.Net is handling the cancel state.
https://www.screencast.com/t/7aLVZ2gx3J

DW: 9.8.4.

BR, Mario


Replies

 
Mario Santos Dynamicweb Employee
Mario Santos
Reply

Anyone?

 
Nicolai Pedersen
Reply
This post has been marked as an answer

I think this is related to recent changes in browsers - and how some gateways are implemented wiht us combined with how they handle cancel (history.go(-1)).

This shows the previous page of the user, in this case the checkout step. This is returned from the browser cache and NOT from the DW server. This causes a situation where the cart that we sent to the gateway is not downgraded to a cart again.

Try enabling the "disable browser cache" option in settings, http. See dump.

It will send out a http header that instructs all pages to not be cached by the browser in any way.

When clicking back, this ensures you get a server response - and that will take care of downgrading the cart to the right state and make fee change work again.

We have just implemented a forced cache on cart pages to accomodate this.

BR Nicolai

Capture.JPG
Votes for this answer: 1
 
Mario Santos Dynamicweb Employee
Mario Santos
Reply

Hi Nicolai,

We upgraded the website to 9.8.6 and issue got fixed. Thanks for checking it.

BR, Mario

 

You must be logged in to post in the forum