Payments: Stripe & Razorpay
One-time payments, subscriptions, webhooks, and billing state — global and India
Phase Goal
Charge money correctly and safely with two providers: Stripe (global) and Razorpay (India). Master Checkout, subscriptions, webhook-driven billing state, refunds, and the security rules that keep payments trustworthy.
Open the written lectures for this course before checking off the phase topics.
Day 108: Stripe Foundations & One-Time Payments
Day 109: Stripe Subscriptions & Webhooks
Day 110: Razorpay Foundations & Payments
Day 111: Razorpay Subscriptions & Payouts
Day 112: Project — Workshop Seat and Sponsorship Billing
Workshop Seat and Sponsorship Billing — DEPLOYED
Build billing for a training cooperative: learners reserve paid seats, sponsors fund seat pools, organizers issue partial refunds, and webhooks reconcile every state change. Support Stripe and Razorpay behind one provider interface, verify signatures, prevent duplicate reservations, and expose an auditable payment and allocation ledger.
- Provider abstraction for Stripe and Razorpay, verified webhook signatures, and idempotent event handling.
- Atomic credit consumption with a ledger that explains every balance change.
- Feature gating, failed-payment handling, and a test-mode demo with real webhook events.
Phase Complete!
After this phase, you'll be able to:
- Stripe Checkout, Payment Intents, and safe payment verification
- Stripe subscriptions, customer portal, and webhook-driven billing state
- Razorpay Orders, Checkout, and signature verification (India stack)
- Razorpay subscriptions, payouts/route, and reconciliation
- A provider-agnostic payments abstraction with region selection
- Webhook security: signatures, idempotency, single source of truth
You can take money in production — globally and in India — with the security and billing-state discipline real SaaS requires.