Accept payments and check access in 30 minutes — no payment logic to build
Quick Start →API key + one POST /checkout — get a checkoutUrl to redirect your user to.
Hosted checkout page — Stripe under the hood. User clicks "Pay Now", payment is processed automatically.
GET /entitlements → items[0].status == "Active" → grant access.
# 1. Create a checkout session
curl -X POST https://billing.yourdomain.com/checkout \
-H "X-Api-Key: YOUR_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"customer":{"externalRef":"tg:123"},"plan":{"key":"pro_monthly"},
"successUrl":"https://myapp.com/ok","cancelUrl":"https://myapp.com/cancel"}'
# Response → { "checkoutUrl": "https://..." } ← redirect user here
# 2. After payment — check access
curl "https://billing.yourdomain.com/entitlements?customerExternalRef=tg:123&productKey=pro" \
-H "X-Api-Key: YOUR_KEY"
# Response → { "items": [{ "status": "Active" }] } ← grant access