How to let customers switch Stripe plans mid-cycle in a Next.js SaaS -- choosing the right proration behavior for upgrades vs downgrades, syncing the change to Drizzle ORM, and building the plan picker UI.
How to add coupon and promo code support to a Next.js SaaS -- validating codes against Stripe, passing them to Checkout, and logging every redemption in Drizzle ORM so you know which promotions actually convert.
Stop leaving money on the table with flat-rate pricing -- learn how to add metered, usage-based billing to your Next.js SaaS using Stripe Meters and Drizzle ORM so you earn more as your customers grow.
How to add a free trial to your Stripe subscription flow in a Next.js SaaS -- setting the trial window at checkout, tracking trial status in Drizzle ORM, sending a reminder email before expiry, and downgrading users who do not convert.
How to accept one-time payments in a Next.js SaaS using Stripe Checkout -- creating a session, handling the webhook, recording the purchase in Drizzle ORM, and gating features behind a paid check.
How to gate features by Stripe subscription plan in a Next.js SaaS -- storing the plan on the user, checking it in the service layer, and enforcing per-plan usage limits so your free tier actually means something.