Skip to main content

Documentation

Refund Finite State Diagram

Diagram of the finite state machine for refunds.

States:

  • Pending (initial)

  • Completed (final)

  • Rejected (final)

  • Error (final)

Transitions:

Transition number

Start state

End state

Description

1

Start

Pending

The client runs Create a Refund.

2

Pending

Completed

The refund was transferred successfully.

3

Pending

Rejected

The refund was not made due to an internal error.

4

Pending

Error

The refund failed because the payment object on which the refund is based is not in closed status. This can occur, for example, if the card was canceled between the payment and the refund or due to a similar reason.