cancel
Showing results for 
Search instead for 
Did you mean: 

Cart deletion issue in ogoing transaction

0 Kudos
490

We are facing an issue in which ongoing cart is deleted when the response is received from payment gateway.This behavior is random and is happening for 5 % cases. All OOB jobs related to cart removal is inactive in production system.Also the property session.remove.cart.on.close=false is maintained in local.properties.

We get below message in log while processing the payment response. [DefaultCartService] Session Cart no longer valid. Removing from session. hasSessionCart will return false. item 8803454124075 no longer valid (was removed): object no longer valid Please suggest if anybody else has faced similar issue.

Accepted Solutions (0)

Answers (4)

Answers (4)

davorin1
Explorer
0 Kudos

Hi,

I've faced the similar problem. The root cause for the session cart invalidation was that we were throwing CommerceCartModificationException in the custom code for adding entries to the cart which invalidated the session cart. The fix that we did is that we've replaced the exception with the logging and the session did not get removed. But beware that the root cause might be hidden in the code base eg. why the entry did not pass the validation.

0 Kudos

Hi All,

We are facing same issue, any clue what was wrong? Please suggest.

Regards,

Priya Raja

TolgaTolan
Explorer
0 Kudos

Hi everybody, any clue on this?

Former Member
0 Kudos

Hi, We are facing the same issue: when the response is received from payment provider, the payment transaction entry and the cre not existing anymore in the database. It happens for a few cases. Did you find any solutions for this issue?

Thanks