Bug Report
Problematic behavior
Currently, an order in pending state can transition to pending_payment once we try to update its state.
Expected behavior/code
An order should be able to transition from pending to pending_payment only if the first installment has been paid and all other installments are not refused.
Steps to Reproduce
- Create an order with a state to
pending
- Call
order.flow.update()
- The order state has been updated to
pending_payment
Environment
Bug Report
Problematic behavior
Currently, an order in pending state can transition to
pending_paymentonce we try to update its state.Expected behavior/code
An order should be able to transition from
pendingtopending_paymentonly if the first installment has been paid and all other installments are not refused.Steps to Reproduce
pendingorder.flow.update()pending_paymentEnvironment