The Payway payment model¶
Target Audience: Users, Stakeholders, Developers
In Payway(PW) the payment defines a transaction. Either a new purchase or a recurring charge. A payment is always connected to an order order.
Payment lifecycle states¶
A payment always starts in the
created state. When in this state the payment has not yet been completed.
A payment in the
pending state is awaiting confirmation from a third party. Most often a PSP.
When the confirmation is received the payment will transfer either to the
A payment that has been successfully completed ends up in the
closed state. This state is the final state.
A failed payment will in end up the
failed state. This state is the final state.
A cancelled payment will in end up the
cancelled state. This is most often due to the customer actively interrupting the purchase.
This state is the final state.