Purchases
Klub supports subscriptions and one-time payments through the same flow. You control the checkout UI; the provider handles payment and Klub finalizes access on return and via webhook.
The flow
- Start checkout with a POST request.
- The provider processes payment on its hosted page.
- The provider calls your webhook to sync.
- Klub grants access by assigning gates.
Endpoints
POST /klub/paymentfor one-time purchases.POST /klub/subscribe/{plan}for subscriptions.GET /klub/payment/{token}andGET /klub/subscribe/{token}for return.POST /klub/webhooks/{provider}for sync.
Portal and invoices
POST /klub/portalredirects to the provider portal (where supported).POST /klub/invoice/{subscriptionId}opens invoice previews (where supported).