Hello,
We are trying to manually remove the cart from the ordercontext that is there even after we complete the order, because if we don't the completed order gets overwritten/downgraded to a cart again. This issue occurs when from the payment provider the client closes the browser after completed payment and only the server push response gets handled. So long as you do not visit the site again all is well, but if you open it (even in a complete different browser) the completed order gets loaded as the current cart.
To fix it we try to remove the cart with the api call Context.RemoveCart(string key), but whatever we fill in as key value, nothing seems to change (at least not in the [EcomOrderContextAccessUserRelation] table in the database.
We have tried the following values:
- cart.Id
- cart.FixedId
- cart.AutoId
- OrderContextId
If anyone knows what this parameter must be, and if there is some save action that has to occur we would be helped.
The documentation of the call can be found on https://doc.dynamicweb.com/api/html/08724ff1-5ff7-a8a3-8b82-e829206316a0.htm
Greets Hans