This guide will walk you through setting up Stripe as a payment provider in your application.
Note: This guide walks you how we setup stripe in the boilerplate. you don’t need to implement it in the boiler plate since its already implemented.
apps/server/.env
apps/server/src/lib/stripe.ts
apps/server/src/lib/auth.ts
apps/server/src/utils/stripeProduct.ts
apps/server/src/lib/auth.ts
checkout.session.completed
: Updates subscription status after checkoutcustomer.subscription.updated
: Updates subscription details when changedcustomer.subscription.deleted
: Marks subscription as canceledapps/server/src/lib/auth.ts