With the Lyra payment backend, some orders can be stucked in submitted state and we have to manually transition it to pending state.
Indeed, in several cases, Lyra is not able to notify Joanie when a payment fails. For example, if the user just initiate a payment then close its browser, no payment is created on Lyra and the frontend is not able to contact Joanie to abort the current payment.
Expected behavior/code
When a consumer fails to purchase or aborts a purchasement of a product, the order should be transitioned to pending state in all cases.
Possible Solution
Check if we manage well payment failure notifications to transition orders from submitted to pending state
Create a management command executed regularly to transition stucked orders.
Bug Report
Problematic behavior
With the Lyra payment backend, some orders can be stucked in
submitted
state and we have to manually transition it topending
state.Indeed, in several cases, Lyra is not able to notify Joanie when a payment fails. For example, if the user just initiate a payment then close its browser, no payment is created on Lyra and the frontend is not able to contact Joanie to abort the current payment.
Expected behavior/code
When a consumer fails to purchase or aborts a purchasement of a product, the order should be transitioned to
pending
state in all cases.Possible Solution
submitted
topending
state