The Payway order model

Target Audience: Users, Stakeholders, Developers

Introduction

In Payway(PW) the order defines what the customer has purchased. Connected to an order are payments.

Order lifecycle states

Order lifecycle

Created state

An order always starts in the created state. When in this state the order has not yet been completed. This is not a final state but the order can stay in this state for several reasons.

  • The user exits the purchase flow mid-purchase.
  • An error occurred during the purchase and we were unable to transfer to order to the failed state.

Closed state

An order that has been successfully completed ends up in the closed state. This state is the final state.

Failed state

An order that for some reason failed to be closed will in end up in a failed state. This state is the final state. Most often occurs when the payment fails during a purchase.