Skip to main content
While we recommend using webhooks for real-time updates, you can also check the status of a payment at any time by polling the Tonder API. This is useful in several cases:
  • When a customer returns to your success_url, and you need to confirm the final payment status before showing an order confirmation.
  • For reconciliation scripts to check the status of pending orders.
  • As a fallback if your webhook endpoint fails.

Option 1: Get Session Status

This is the most common method. Use the session_id to retrieve the entire session object, which includes the latest status and transaction_status. Call the Get a Session endpoint, replacing {id} with your session_id. This example demonstrates how to retrieve a session using cURL or Node.js:
When the payment is completed, the API will return a response like this:

Option 2: Get Payment Transaction Details

If you have a payment_id (which you can get from the session object or a webhook), you can retrieve details for that specific transaction. Call the Get a Payment Transaction endpoint. This example shows how to retrieve payment transaction details:
The API will return detailed information about the payment transaction:

See Also

For more information about understanding payment statuses:
  • Check the Status Reference to understand the meaning of all possible status and transaction_status values, including the key differences between session and transaction statuses.