SebCheckout — Payments

Create a checkout session for a product and send your customer to the hosted payment page. Completed sessions produce a payment record.

Create a checkout session

bash
curl -X POST https://seb-auth.lovable.app/api/public/v1/checkout/sessions \
  -H "Authorization: Bearer sk_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "product_name": "Pro plan",
    "amount": 2900,
    "currency": "usd",
    "customer_email": "ada@example.com"
  }'

Amounts are in the smallest currency unit (cents). The response contains url, a hosted page at https://seb-auth.lovable.app/payment-demo?session=….

List payments

bash
curl https://seb-auth.lovable.app/api/public/v1/checkout/payments \
  -H "Authorization: Bearer sk_live_your_key"

Statuses

Sessions start as pending and become completed once payment succeeds. Payments carry succeeded or failed.