Skip to main content

Transaction Lifecycle

The Pagamio VAS system tracks transactions through a well-defined lifecycle. Each transaction has a TransactionStatus that indicates its current state.


Lifecycle Flow

PENDING → PROCESSING → COMPLETED / FAILED

⚠️ Transactions always start in PENDING. They then move to PROCESSING, and finally end as either COMPLETED or FAILED.


States Explained

StatusCodeDescriptionBadge Color
PENDING1Item is waiting to be processedgray
PROCESSING2Item is currently being processedblue
COMPLETED0Item has been processed successfullygreen
FAILED3Item processing has failedred

Best Practices for Integrators

  1. Track transactionId for each request for reconciliation and support.
  2. Monitor status changes to update UI or trigger business logic.
  3. Handle retries carefully: Retry only FAILED transactions when appropriate.
  4. Validate final status before performing fulfillment or confirming payments.