How It Works
- Your server calls this endpoint with payment details (amount, items, customer info).
- Tonder creates a secure session and returns a checkout URL.
- You redirect your customer to this URL.
- Customer completes the payment on Tonder’s hosted page.
- Customer is redirected back to your
success_urlorcancel_url.
Session Lifecycle
The session starts inpending status and transitions to completed, expired, or cancelled based on customer actions. See the Status Reference for all possible status values.
Related Resources
- Quickstart Guide: Complete walk-through of creating your first session.
- How to Create a Payment Session: Detailed integration guide.
- Status Reference: Understanding all session and transaction status values.
Authorizations
Body
Total charge amount
35000
Currency code
MXN "MXN"
List of order items
Unique order reference from the merchant. Used to visually identify/filter the order in dashboard
"ORD-12345"
Unix timestamp (seconds). Must be 30 min to 24h in future. Default 24h
1751063448
Additional metadata
Redirect after successful payment
"https://my-store.com/order/success"
Required if success_url is not set. If specified, used as fallback for all redirects
"https://my-store.com/checkout/complete"
Redirect if payment is under review. Only applicable for future APM support
Defaults to ["card"]. Currently only card is supported
["card"]Defaults to "hosted"
hosted "hosted"
Defaults to "payment"
payment "payment"
Version of the UI config. Defaults to "V1"
"V1"
UI configuration for Hosted Checkout customization
Response
Session created 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"

