Developer forum

Forum » Development » Checkout handler

Checkout handler


Reply

I am developing a checkout handler for payment. Everything works fine except if the customer wants to cancel or change payment method.

If I redirect the customer back to the cart again the Order is no longer in the session as it should.

But how do I reattach the order to the session before I do the redirect?

I have looked through the Checkout handlers documentation and the Dynamicweb.Ecom7.Cart Namespace but can’t find what I am looking for.


Replies

 
Jeppe Eriksson Agger Dynamicweb Employee
Jeppe Eriksson Agger
Reply
When you're done with the Checkout (even if you get an error or the payment was cancelled) you need to call the method CheckoutDone(order). This method converts the order back to a cart giving the user the option to try again or whatever they need to do. If this is not done, then the order becomes an orphaned order.

 

You must be logged in to post in the forum