Keystone Docs

Mirrors the CLI output from keystone docs <topic>.

payments

Unified payment module contract and provider adapters.

Details

  • Unified API exposed to generated project: createCheckout, createPortal, getSubscription
  • Providers: stripe | polar | lemonsqueezy | autumn | none
  • Stripe implementation uses Checkout Sessions and Billing Portal Sessions APIs
  • Polar implementation uses Checkouts and customer portal session endpoints
  • Lemon Squeezy implementation uses checkouts + subscriptions APIs
  • Autumn implementation uses checkout + attach/billing portal APIs
  • Generated provider adapters use Effect runtime helpers for env guards and safe HTTP boundaries
  • CLI and backend use /api/agent/checkout so external flow is provider-neutral

Implementation Files

  • src/convex/generators/payments.ts
  • src/convex/agent_api.ts
  • src/convex/polar.ts
  • src/convex/http.ts

Official Sources