Developer forum

Forum » Ecommerce - Standard features » New order object created when Klarna payment is canceled

New order object created when Klarna payment is canceled

Martin Moen
Reply

We are using the Klarna Checkout v3, which is working as expected except in one scenario.

Whenever a user cancel an ongoing Klarna payment session, the user is sent back to the basket, and verything looks good.
But at the same time a new order object is created, and the old one is still open.

Not sure if it is a big problem, but I can see that the shop is quickly filling up with abandoned order objects.

In this case (screenshot) I canceled the Klarna payment three times, and three order objects was created.

Screenshot_2022-01-21_220654.jpg

Replies

 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply

Hi,

Nowadays it is general behavior on cancelling in payment providers support the method (via cancel template) from checkout, not for Klarna only. So, it's feature but not a bug, the orders are not completed in system in fact. The behavour may be changed in further DW versions to prevent gathering of the objects.

BR, Oleg QA    

 
Martin Moen
Reply

Understood. But the Klarna payment provider is a standard Dynamicweb feature, so I guess Dynamciweb should look into if this is a desired effect or not.

Our customers are constantly wondering why there are so many duplicate not completed order objects in the administration. And I really dont know how this can be a feature, what good does it do to have all these order objects lying around?

 
Nicolai Pedersen
Reply

Hi Martin

It is a desired effect to keep history. Most payment providers do not allow the same order number to be submitted more than once, so we make a copy of the order, change it to a new cart, and then it gets a new order number before sending it to payment gateway again. Also to keep history.

BR Nicolai

 

You must be logged in to post in the forum