Skip to main content

Event: card.transaction

Sent when a card transaction status changes. The status field indicates the type of event. A single transaction may generate multiple card.transaction events as it moves through its lifecycle.

Transaction lifecycle

Payload

The payload always includes a status field. Additional fields are included depending on the status.

Common fields

Status: authorized

Sent when a card transaction authorization is approved and a hold is placed on funds. If a settlement fee applies, the fee field is included.

Status: settled

Sent when an authorized transaction is settled (cleared) by the card network. The settled amount may differ from the authorized amount.

Status: declined

Sent when a card transaction authorization is declined.

Status: reversed

Sent when a transaction is fully or partially reversed/refunded. Use originalAmount and amount to determine if this is a partial or full reversal.

Full reversal

The entire authorized amount is released. The transaction is voided.

Partial reversal

Part of the authorized amount is released. The remaining hold continues to settlement.
Determining full vs partial: Compare amount to originalAmount. If they are equal, it is a full reversal. If amount < originalAmount, it is partial.

Response

Your endpoint must return a 2xx status code within 30 seconds to acknowledge receipt. Any non-2xx response or timeout triggers the retry policy.

Example handler