Simulacrum

Payments overview

Stripe, Polar, Creem, and Dodo adapters, subscription shapes, and configuration in simulacrum.config.ts.

Providers

Simulacrum targets four billing providers:

  • Stripe
  • Polar
  • Creem
  • Dodo

Set payments.provider and provider-specific keys in environment variables.

Subscriptions

Support monthly, yearly, and one-time purchases. Plan switching UI covers upgrade and downgrade with proration rules defined per provider.

Billing portal

Stripe Customer Portal integration lets customers manage cards and invoices. Map portal return URLs to your app’s account pages.

Paywall

Use the <Paywall> component to gate routes or sections by active plan. See Paywall component.

Use test mode keys in preview deployments and rotate webhook secrets per environment.