Developer forum

Forum » Ecommerce - Standard features » Issue with both positive callback and cancel from DIBS FlexWin

Issue with both positive callback and cancel from DIBS FlexWin

Martin Bakken Rickmann
Reply

Hi,

I'm seeing an issue on checkout for two different webshops running in v8.9.2.6 and v8.5.1.19. Both solutions are running with DIBS FlexWin. Issue is new to both of them and I have seen 3 examples of the behaviour in last 6 days. Solutions are running on two completely different server setups and integrations. 

The behaviour i see is based on order log.

The user goes to payment window with success and an order is completed - transaction number etc. is returned, mail sent - all is good. 

ti, 21 nov 2017 14:48:08 Order Order is kept in context - new order id (ORDRE1999 Total:677, orderline total:677,00 DKK; Orderlines:5 - Products:3, Discounts:2, Taxes:0, BOM:0.)  
ti, 21 nov 2017 14:48:08 Order Passing order to checkout handler: Dynamicweb.eCommerce.Cart.CheckoutHandlers.Dibs (ORDRE1999 Total:677, orderline total:677,00 DKK; Orderlines:5 - Products:3, Discounts:2, Taxes:0, BOM:0.)  
ti, 21 nov 2017 14:48:08 Dynamicweb.eCommerce.Cart.CheckoutHandlers.Dibs Checkout started (OrderID:ORDRE1999 (IsCart:True) Total:677, orderline total:677,00 DKK; Orderlines:5 - Products:3, Discounts:2, Taxes:0, BOM:0.)  
ti, 21 nov 2017 14:48:08 Dynamicweb.eCommerce.Cart.CheckoutHandlers.Dibs Render template (OrderID:ORDRE1999 (IsCart:True) Total:677, orderline total:677,00 DKK; Orderlines:5 - Products:3, Discounts:2, Taxes:0, BOM:0.)  
ti, 21 nov 2017 14:48:53 Dynamicweb.eCommerce.Cart.CheckoutHandler Redirecting to checkout handler: Dynamicweb.eCommerce.Cart.CheckoutHandlers.Dibs (OrderID:ORDRE1999 (IsCart:True) Total:677, orderline total:677,00 DKK; Orderlines:5 - Products:3, Discounts:2, Taxes:0, BOM:0.)  
ti, 21 nov 2017 14:48:53 Dynamicweb.eCommerce.Cart.CheckoutHandlers.Dibs Callback started (OrderID:ORDRE1999 (IsCart:False) Total:677, orderline total:957,00 DKK; Orderlines:5 - Products:3, Discounts:2, Taxes:0, BOM:0.)  
ti, 21 nov 2017 14:48:53 Dynamicweb.eCommerce.Cart.CheckoutHandlers.Dibs Payment succeeded with transaction number xxxxxxxxxx (OrderID:ORDRE1999 (IsCart:False) Total:677, orderline total:957,00 DKK; Orderlines:5 - Products:3, Discounts:2, Taxes:0, BOM:0.)  

 

About 30-40 seconds later I see a new attempt of user going to payment window and or cancelling

ti, 21 nov 2017 14:49:29 Dynamicweb.eCommerce.Cart.CheckoutHandler Redirecting to checkout handler: Dynamicweb.eCommerce.Cart.CheckoutHandlers.Dibs (OrderID:ORDRE1999 (IsCart:False) Total:677, orderline total:957,00 DKK; Orderlines:5 - Products:3, Discounts:2, Taxes:0, BOM:0.)  
ti, 21 nov 2017 14:49:29 Dynamicweb.eCommerce.Cart.CheckoutHandlers.Dibs State cancel (OrderID:ORDRE1999 (IsCart:False) Total:677, orderline total:957,00 DKK; Orderlines:5 - Products:3, Discounts:2, Taxes:0, BOM:0.)

The newly completed order is then cancelled and converted back into cart

ti, 21 nov 2017 14:50:05 Order Passing order to checkout handler: Dynamicweb.eCommerce.Cart.CheckoutHandlers.Dibs (ORDRE2000 Total:677, orderline total:397,00 DKK; Orderlines:7 - Products:3, Discounts:4, Taxes:0, BOM:0.)  
ti, 21 nov 2017 14:50:05 Dynamicweb.eCommerce.Cart.CheckoutHandlers.Dibs Checkout started (OrderID:ORDRE2000 (IsCart:True) Total:677, orderline total:397,00 DKK; Orderlines:7 - Products:3, Discounts:4, Taxes:0, BOM:0.)  
ti, 21 nov 2017 14:50:05 Dynamicweb.eCommerce.Cart.CheckoutHandlers.Dibs Render template (OrderID:ORDRE2000 (IsCart:True) Total:677, orderline total:397,00 DKK; Orderlines:7 - Products:3, Discounts:4, Taxes:0, BOM:0.)  
ti, 21 nov 2017 14:53:16 Dynamicweb.eCommerce.Cart.CheckoutHandler Redirecting to checkout handler: Dynamicweb.eCommerce.Cart.CheckoutHandlers.Dibs (OrderID:ORDRE2000 (IsCart:True) Total:677, orderline total:677,00 DKK; Orderlines:5 - Products:3, Discounts:2, Taxes:0, BOM:0.)  
ti, 21 nov 2017 14:53:16 Dynamicweb.eCommerce.Cart.CheckoutHandlers.Dibs State cancel (OrderID:ORDRE2000 (IsCart:False) Total:677, orderline total:677,00 DKK; Orderlines:5 - Products:3, Discounts:2, Taxes:0, BOM:0.)  
ti, 21 nov 2017 14:53:16 Order Called CheckoutDone (pageID:0) (ORDRE2000 Total:677, orderline total:677,00 DKK; Orderlines:5 - Products:3, Discounts:2, Taxes:0, BOM:0.)  
ti, 21 nov 2017 14:53:16 Order Order is not complete - converting back to cart (ORDRE2000 Total:677, orderline total:677,00 DKK; Orderlines:5 - Products:3, Discounts:2, Taxes:0, BOM:0.)  
ti, 21 nov 2017 14:53:16 Order New cart id (CART6444 Total:677, orderline total:677,00 DKK; Orderlines:5 - Products:3, Discounts:2, Taxes:0, BOM:0.)

The issue transaction is good in DIBS, order has been moved to ERP, order confirmation email is sent - but DW says order is incomplete. 

I strongly suspect that the reason for this issue is in DIBS doing some changes to their flow. I have an end user confirming that DIBS window threw timeout. 

Questions are- is there some way to prevent the behaviour where order is cancelled immediately after being completed? In principle DW should not accept this. 

And is anyone else seeing this behaviour?

/Martin


Replies

 
Nicolai Pedersen
Reply

Hi Martin

I think it is bug TFS#40163 - Yes, Dibs made a minor change causing DW to behave a little different in some scenarios.

Basically if you have a solution that is not using orderids called "ORDER*", you can see this problem. This solution has IDs called "ORDRE*" - note the little difference Danish vs English. That is one part of the fix in TFS#40163 bug (also includes a double check on other situations).

You need 8.9.2.13 to get the fix.

BR Nicolai

 
Martin Bakken Rickmann
Reply

Hi Nicolai,

Thx for the swift reply. 

/Martin

 

 

You must be logged in to post in the forum