Skip to main content

Transaction state

View as Markdown

Overview​

To check the state, details and events of a transaction in the Fabrick Dashboard, refer to its documentation (available in Italian).

Specifically:

To check the state, details and events of a transaction via API, use the payment/detail REST call.

The correct reading comes from the combination of:

  • transactionResult
  • transactionState
  • transactionErrorCode

In practice:

InformationPurpose
transactionResultThe outcome of the transaction.
transactionStateThe current technical stage reached by the transaction.
transactionErrorCodeThe error code, if any.
Transaction eventsCaptures, cancellations and refunds: the operations executed on the transaction
Important

A transaction with transactionResult = APPROVED and transactionState = MOV means that a capture has been requested, but the actual credit must be verified with the party handling the settlement.

Transaction state​

transactionResulttransactionStatetransactionErrorCodeMeaning
UNSUBMITTED--Instance created, no payment method chosen yet.
WAITING--Method chosen, waiting for a response. Only when payment/submit is used.
AUTHENTICATED--Only in the card scenario with an authentication-only request: Non-Payment Authentication (NPA).
PENDINGAUT0Payment started, waiting for an OK/KO outcome. Typical of asynchronous methods.
APPROVEDAUT0Transaction authorized.
APPROVEDPRE0Transaction authorized, capture request not yet completed. Depends on the method used.
APPROVEDMOV0Transaction partially or fully captured. It stays in this state if it is refunded, but not in full.
APPROVEDCAN0Transaction authorized and then cancelled.
APPROVEDSTO0Transaction fully refunded.
DECLINEDAUT≠ 0 (e.g. 74)Transaction failed.

Transaction events​

The current state of the transaction is a snapshot of the moment the check is made. This information is necessary, but not always enough to understand everything that has happened on the transaction. The events associated with the transaction show whether operations such as the following have been executed:

  • capture
  • cancellation
  • refund
EventOperationTypical effect on the transactiontransactionState after the event
AUTAuthorizationThe transaction reaches the authorization stage. It can end positively or negatively.AUT
MOVCaptureThe transaction is fully or partially captured. Only a successfully authorized transaction can be captured.MOV
CANCancellationThe transaction is cancelled. Only a successfully authorized transaction can be cancelled.CAN
PRECapture bookingThe capture has been requested but not yet completed.PRE
REQRefund bookingThe refund has been requested but not yet completed.MOV
STORefundThe transaction is fully or partially refunded.MOV if the refund is partial. STO if the refund is full and there are no other unrefunded captures on the transaction

Events are especially important when several successive operations are executed on a single transaction, for example:

  • several partial captures;
  • one or more refunds on the same capture or on different captures.

Separated and unified capture​

Some payment methods, such as cards, let you choose between separate authorization and capture or unified capture. Other methods only support capture together with the authorization; some of these go through intermediate states such as PENDING before reaching an OK/KO state, for example Pay by Bank.

On the Gestpay Dashboard, where the payment methods allow it, you can configure each ShopLogin to have authorization and capture unified or separated.

  • Unified capture: authorization and capture happen in the same flow.
  • Separated capture: authorization and capture are two distinct moments.

Merchant_Back_Office-Configuration-Environment_MOTO

For ShopLogins configured with Separated Capture, you need to define an automatic action to execute after the authorization:

  • Capture
  • Cancel

The maximum number of days depends on the payment method; you can set a value between 1 and 25 days. Between the authorization and the time set for the automatic action, you can capture or cancel the transaction via API or Dashboard.

ConfigurationtransactionResulttransactionStatetransactionErrorCodeAction required
Separated CaptureAPPROVEDAUT0Capture or Cancel
Unified CaptureAPPROVEDMOV0None

Related pages:


Support​

Fabrick