Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Both scenarios have similar steps in the payment process, just the initialization is different.

Steps

The payment flow has these parts:

...

  1. Order initialization - redirect URL and payment ID are present in the response

  2. Order processing

    1. Redirect flow - Redirecting to URL obtained in step 1. Details of the redirect flow can be found here: Redirect Flow

    2. Embedded flow - Calling Process Order endpoint until the payment is processed (anmd and react on specific responses like inputs requests etc.). Details of the embedded flow can be found here: Embedded Flow

  3. Checking status

    1. Either by getting the order detail (Get Order endpoint) - it provides detail of the order together of details of all its payments

    2. Or by getting the detail of the specific payment in the order (Get Order Payment endpoint)

...

During the payment process the payment changes its status. The status defines not only state of the payment, but also possible operations - payments in some statuses cannot be updated or cancelled.

Status

Final

Withdrawable

Flow

Description

CREATED

no

yesALL

Payment is created and waiting for the user.

SEEN

no

yesREDIRECT

User opens the Everifin Paygate web page or processing via Process Order endpoint is started.

PROCESSING

no

no

ALL

The payment is being processed (user is authorizing payment on bank`s page or authorization is done and payment is being processed in the bank).

CONFIRMED

yes

noALL

The payment has been successfully authorized in the bank by the payer.

BOOKED

yes

no

ALL

The payment has been booked (settled) in the bank.

WITHDRAWN

yes

noALL

The payment has been withdrawn by merchant.

FAILED

yes

noALL

Payment has failed.

Field reasonCode will provide more information about the failure. Possible values are described below in separate table.

EXPIRED

yes

noALL

Payments that stay in CREATED or SEEN for a long time are eventually moved to this state.

...