not neededapp.post("/webhooks/stripe", raw(), async (req, res) => { const event = stripe.webhooks.constructEvent(req.body, sig, secret); if (event.type === "customer.subscription.updated") { … } if (event.type === "invoice.payment_failed") { … }});
Writing and verifying webhooks
Subscription state stays in sync without a webhook handler in your app.
prod_Proprice_monthlyprice_yearlyprice_legacy
Creating Stripe products and prices
No product or price IDs to copy into your code.
Building a pricing page
A hosted pricing page with checkout, in your brand.
Update cardChange planInvoicesCancel
Setting up the customer billing portal
Buyers manage their plan without a support email.
// is this user on Pro?
(await payments.entitlements(user.id))
.has("export_csv")
→ true
Entitlement checks in your app
One call answers "is this user on Pro?"
TestLive
Switching between test mode and live mode
Everything starts in test mode. Live needs your second approval.
Pro, monthly, current subscribers$19 → $19
Pro, monthly, new buyers$19 → $24
Price migrations
Current subscribers keep their price. Only new buyers see the new one.