A checkout session is a short-lived payment page. You create one, redirect the customer to theDocumentation Index
Fetch the complete documentation index at: https://docs.stellartools.dev/llms.txt
Use this file to discover all available pages before exploring further.
payment_url, and StellarTools handles the rest. On completion, the customer is sent to your redirect_url.
The checkout object
Unique identifier. Prefixed with
chk_.Always
"checkout".The customer being charged.
For product checkouts. The product being purchased.
For direct checkouts. The amount to charge.
For direct checkouts. Asset code, e.g.
"XLM".open, completed, expired, or failed.URL to redirect the customer to for payment.
URL the customer is sent to after payment.
Optional description shown on the checkout page.
Arbitrary key-value data.
ISO 8601 timestamp. Checkout sessions expire after 24 hours.
ISO 8601 timestamp.
Create a checkout
POST /checkout?type=product or POST /checkout?type=direct
Use type=product to charge for a product you’ve defined. Use type=direct to charge an arbitrary amount without a product.
Product checkout
The product to charge for.
Existing customer ID. If omitted, provide
customer_email or customer_phone to create one.Email to look up or create a customer.
Phone number to look up or create a customer.
URL to redirect the customer to after payment.
Description shown on the checkout page.
Arbitrary key-value data.
Direct checkout
Amount to charge.
Asset code, e.g.
"XLM".customer_id, customer_email, customer_phone, redirect_url, description, metadata).
Retrieve a checkout
GET /checkout/{id}

