Creates a new Hosted Checkout session. Tonder returns a URL for you to redirect your customer to complete the payment. The session tracks the overall payment state and can handle multiple payment attempts if the first one fails.
success_url or cancel_url.pending status and transitions to completed, expired, or cancelled based on customer actions. See the Status Reference for all possible status values.
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 ["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
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"