Skip to main content

Fixed pricing model (subscriptions and credits)

Fixed pricing typically uses a payment provider product and price catalog to sell:

  • subscription prices (recurring)
  • credit packs (one-time)

Vluna exposes a read-only catalog for your realm and provides checkout and portal endpoints for self-serve flows.

Prereqs

Self-serve flow (high level)

  1. Frontend lists products and prices from /api/v1/catalog/*.
  2. Frontend creates a checkout session via /api/v1/checkout/sessions.
  3. User completes checkout in the provider page.
  4. Webhook processing updates the account state and wallet balances.
  5. Frontend uses /api/v1/portal/sessions for self-serve subscription management.

Verify

  • Catalog endpoints return products visible to your realm.
  • Checkout session creation returns a provider session URL.
  • Wallet balance changes after purchase is finalized.

Next