Common Use Cases
- Post-Payment Verification: When a customer returns to your
success_url, retrieve the session to confirm the payment was actually completed. - Reconciliation: Check the status of sessions for orders that may have been abandoned or are in an unknown state.
- Status Polling: If you’re not using webhooks, you can poll this endpoint to check for payment completion.
Key Fields to Check
- status: The overall session state (
pending,completed,expired,cancelled). - payment_id: If present and status is
completed, this is the ID of the successful payment transaction. - transaction_status: The status of the actual payment transaction (e.g.,
Success,Declined).
Related Resources
- How to Manually Check Payment Status: Integration guide for checking payment status.
- Status Reference: Complete list of all status values.
- Key Identifiers: Understanding session IDs, payment IDs, and external IDs.
Authorizations
Path Parameters
The Session ID (e.g., sess_a1b2c3d4e5f6)
"sess_a1b2c3d4e5f6"
Response
Session retrieved successfully
Unique session identifier
"cs_97_41521_d11ba771527b4056c7f85786cfbb980bc105efaf42af113d"
Redirect your customer to this URL to begin the payment
"https://stage-payflow.tonder.io/checkout/cs_97_41521_d11ba771527b4056c7f85786cfbb980bc105efaf42af113d"
Session status
pending, completed, expired "pending"
Associated payment ID
41521
Total amount to be charged
35000
Currency used
"MXN"
Expiration time (Unix timestamp in seconds)
1751564943
Order reference from the merchant
"ORD-12345"
Type of session
"payment"
Checkout method
"hosted"
Success redirect URL
Return/fallback redirect URL
Pending redirect URL
Custom data sent by the merchant
Allowed payment methods
["card"]UI configuration applied
Version of UI config
"V1"
Creation timestamp in milliseconds
1751478543567
Last modification timestamp in milliseconds
1751478543567
Payment completion timestamp in milliseconds
Result of transaction
Pending, Success, Declined, Expired "Pending"
Gateway used
"tonder"

