Retrieve the current status and history of a transaction
Retrieve the current status and complete history of a transaction. This method queries the payment provider for the latest transaction state and returns a full status timeline.
The getStatus() method may throw the following errors:
VaultRoutingError
Thrown when the provider for the transaction cannot be found.
// src/client/vault-client.ts:491-495if (!fallbackProvider) { throw new VaultRoutingError( 'No configured providers are available for transaction lookup.' );}
Provider-specific errors
The provider may return errors such as:
Transaction not found
Access denied (transaction belongs to different account)
The getStatus operation (src/client/vault-client.ts:297-318):
Looks up the provider that handled the original transaction using the transaction index
Falls back to the first configured provider if the transaction is not in the index
Queries the provider adapter for the current status
Records the transaction in the provider index for future lookups
Queues transaction report to the platform for analytics
Returns the normalized status with complete history
Status queries are always made to the provider that originally processed the transaction. The method automatically routes to the correct provider using the transaction index.
Use getStatus() to:
Verify payment completion before fulfilling orders
Transaction starts with "pending" status when first created.
2
Processing
Status may transition to:
"authorized" for authorizations
"requires_action" for 3DS or similar verification
"completed" for successful immediate charges
3
Final states
Terminal states include:
"completed" - successful charge or capture
"failed" - processing error
"declined" - rejected by bank or fraud check
"cancelled" - voided by merchant
Status history is provider-dependent. Some providers may return minimal history with only the current state, while others provide detailed audit trails.