CoreMVP

Stripe Subscription Billing

View as Markdown

Offer monthly or yearly subscriptions through Stripe. Customers sign in, check out, and manage billing in the customer portal.

FactValue
CheckoutSigned in only; the server rejects anonymous recurring Checkout
Billing periodMonthly or yearly; the Stripe Price sets the cadence
AccessStored active or trialing subscriptions
PortalStripe customer portal: payment methods, invoices and cancellation; plan changes require configuration
Test command./coremvp e2e billing:subscription

Map the monthly Price, and the yearly Price if you sell it, for each plan in ignored :

.env.local
PAYMENT_PROVIDER=stripe
NEXT_PUBLIC_STRIPE_MODE=test
NEXT_PUBLIC_STRIPE_PRO_PRICE_ID_MONTHLY=price_replace_me
NEXT_PUBLIC_STRIPE_PRO_PRICE_ID_YEARLY=price_replace_me

Keep plan names, displayed amounts and features in . All catalog inputs are in Stripe Environment Variables.

Was this page helpful?