Developer forum

Forum » Ecommerce - Standard features » EBizCharge back button after complete sends emails twice

EBizCharge back button after complete sends emails twice

Mario Santos Dynamicweb Employee
Mario Santos
Reply

Hi there,

We ran into an issue with EBizCharge. When users click on browser's back button immediately after order receipt is displayed, the shopping cart app is sending order notification emails again. The reason is the back button is triggering the checkout handler StateOk which will process the order, flag it as complete and calling CheckoutDone():
/Default.aspx?ID=102&CheckoutHandlerOrderID=WEB1024921&Action=Approved&SavedC[.........]

This can easily be reproducible by opening the callback link as well. I created a patch for ourselves on EBizCharge checkout handler here - https://dev.azure.com/dynamicwebsoftware/Dynamicweb/_git/Dynamicweb/commit/623c5e08c11ac2ca27508faa67083ad25d09debe?refName=refs%2Fheads%2Fmsan%2FEBizChargeOrderCompleteCheck - although fixing it on shopping cart app itself instead of every single provider would make more sense to me.

DW version: 9.14.9

Thanks!
BR, Mario

 


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply
This post has been marked as an answer

Hi Mario

Thanks!

I have created a pull request for your change.

Votes for this answer: 1

 

You must be logged in to post in the forum