Transaction lifecycles
The event types on a transaction and the sequences for payment, return, and refund.
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
| Event | Meaning |
|---|---|
Authorization | A hold on a card. The hold expires if it is not captured. |
Capture | An authorization was captured. |
Payment | A payment was taken. For a card, this is authorization and capture in one step. |
Payout | A payout of funds to a recipient's bank account. |
InitiateAuthorization | An authorization is waiting on payer authentication, such as 3-D Secure. |
InitiatePayment | A payment is waiting on payer authentication. |
Process | The payment was sent to the bank and can no longer be voided. |
Settle | The processor, such as Stripe or Adyen, reported that the funds settled and are ready to fund the merchant. |
Batch | The transaction was included in a batch that pushes funds to, or pulls funds from, the merchant bank account. |
Void | The payment was voided before it was sent to the bank. |
Refund | A refund was created. |
Return | A bank payment was returned. The message is safe to show the payer. |
Reject | The attempt was rejected immediately. The message is safe to show the payer. |
Hold | The transaction was held for risk. |
HoldReleased | A hold was released. |
Dispute | The payer started a dispute. |
Chargeback | A card payment was returned to the payer after a dispute. |
ChargebackReversal | A chargeback was reversed and funds went back to the merchant. |
Fee | A 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, thenSettle, thenBatch. The provider reports settlement, then reports funding to the merchant. - dhango moves the funds on Third Party Sender:
Payment, thenProcess, thenBatch. dhango queues the payment, sends it to the bank at the cutoff (Process), and recordsBatchwhen it funds the merchant.
Payouts
On Third Party Sender, payouts are funded before they are sent.
- To an outside recipient:
Payout, thenBatch, when the account paying out is debited, thenProcess, 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, thenBatch, when the payee is credited. There is noProcessevent.
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, thenReturn, thenBatch. dhango creates a new return transaction linked to the original, and the batch debits the merchant. - Not funded yet:
Payment, thenReturn. 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, thenRefund, thenBatch. The refund is a new transaction, and its batch debits the merchant. - Not funded yet:
Payment, thenRefund. No funding event is needed.
For holds and the Third Party Sender funding timeline, see ACH risk controls.