Skip to content

The Payway payment model

Target Audience: Users, Stakeholders, Developers

Introduction

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

Payment lifecycle

Created state

A payment always starts in the created state. When in this state the payment has not yet been completed.

Pending state

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 closed or failed state.

Closed state

A payment that has been successfully completed ends up in the closed state. This state is the final state.

Failed state

A failed payment will in end up the failed state. This state is the final state.

Cancelled 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.