Skip to content

Stripe

Until then, sell through Stripe and issue licences from your own backend, which already hears from Stripe when someone pays. The Admin API works with any payment provider.

  1. In the Console, an owner creates an admin API key with the scopes licences:read and licences:write. Keep it in your server’s secrets, never in your app.
  2. When Stripe tells your server that a checkout was paid, call POST /v1/admin/licences for the customer’s email and your product.
  3. Make every retry the same request: send a licence id you chose and stored with the order, so a repeat answers 409 conflict instead of issuing a second licence, and your order id as external_ref to find the licence later.
  4. On a refund or a cancelled subscription, revoke or expire the licence through the Admin API.

Polar is the payment provider Sealcord connects to today: see Polar. The API reference lists each route’s body and answers.