DOCS
Build with the API

Transaction lifecycles

The event types on a transaction and the sequences for payment, return, and refund.

Platform guide

A transaction records everything that happens to a payment after it is created. Its root TransactionEventType is the action that created it, and its Events collection lists each step since. For example, a payment that was sent to the bank and then funded can show Payment, Process, and Batch. Use this page to read those events, and to know which sequence to expect.

Event types

EventMeaning
AuthorizationA hold on a card. The hold expires if it is not captured.
CaptureAn authorization was captured.
PaymentA payment was taken. For a card, this is authorization and capture in one step.
PayoutA payout of funds to a recipient's bank account.
InitiateAuthorizationAn authorization is waiting on payer authentication, such as 3-D Secure.
InitiatePaymentA payment is waiting on payer authentication.
ProcessThe payment was sent to the bank and can no longer be voided.
SettleThe processor, such as Stripe or Adyen, reported that the funds settled and are ready to fund the merchant.
BatchThe transaction was included in a batch that pushes funds to, or pulls funds from, the merchant bank account.
VoidThe payment was voided before it was sent to the bank.
RefundA refund was created.
ReturnA bank payment was returned. The message is safe to show the payer.
RejectThe attempt was rejected immediately. The message is safe to show the payer.
HoldThe transaction was held for risk.
HoldReleasedA hold was released.
DisputeThe payer started a dispute.
ChargebackA card payment was returned to the payer after a dispute.
ChargebackReversalA chargeback was reversed and funds went back to the merchant.
FeeA processor fee, recorded for tracking.

Payments

The sequence depends on who moves the money.

  • A provider such as Stripe or Adyen moves the funds: Payment, then Settle, then Batch. The provider reports settlement, then reports funding to the merchant.
  • dhango moves the funds on Third Party Sender: Payment, then Process, then Batch. dhango queues the payment, sends it to the bank at the cutoff (Process), and records Batch when it funds the merchant.

Payouts

On Third Party Sender, payouts are funded before they are sent.

  • To an outside recipient: Payout, then Batch, when the account paying out is debited, then Process, when the credit is sent to the recipient's bank, about 3 banking days later once the debit has cleared.
  • To an in-system payee: Payout, then Batch, when the payee is credited. There is no Process event.

If a payout is returned after it was batched, the return is a new linked transaction with event type Return. If it is returned before it was batched, the return is recorded on the original payout, and the TransactionEvent carries event type Return.

Returns

What a return looks like depends on whether the merchant was already funded.

  • Funded: Payment, then Return, then Batch. dhango creates a new return transaction linked to the original, and the batch debits the merchant.
  • Not funded yet: Payment, then Return. dhango marks the original transaction returned. There is no second transaction, and nothing is debited from the merchant.

Refunds

Refunds follow the same pattern.

  • Funded: Payment, then Refund, then Batch. The refund is a new transaction, and its batch debits the merchant.
  • Not funded yet: Payment, then Refund. No funding event is needed.

For holds and the Third Party Sender funding timeline, see ACH risk controls.