Clients
Services
Blog
Contact
Handling Stripe Subscriptions
Learn how to handle Stripe Subscriptions
Search Book
⌘K
to navigate
Enter
to select
Esc
to close
1.
Setting up Stripe account
Setting up Stripe account
2.
Modelling product and prices in Stripe
Modelling product and prices in Stripe
Creating a product
Creating a product and prices via Stripe API
3.
Accepting payments using stripe
Accepting payments using stripe
Stripe Checkouts
Stripe Elements
Stripe Checkout vs Stripe Elements
4.
Working with a subscription
Working with a subscription
Subscription Lifecycle
Retrying failed payments
Provisioning access to product based on subscription
Upgrading and Downgrading Subscriptions
5.
Cancelling a subscription
Cancelling a subscription
Ways to cancel a subscription
Automatic cancellations by Stripe
Resubscribing after cancellation
Summary from application perspective
6.
Handling Discounts
Applying discounts to a new subscription
Applying discounts to an existing subscription
Applying discounts to a customer
Deleting discounts
7.
Designing database for subscription
General design for database
Schema design for subscription
Conventions followed
User table
Subscription table
Price table
BillingDetails table
Address table
Discount table
Coupon table
WebhookEvents table
8.
Enabling or disabling address collection in Stripe Checkout
Enabling or disabling address collection in Stripe Checkout
Limitations
9.
Handling Stripe webhooks and corresponding events
Handling Stripe webhooks
Use cases of webhooks
Creating webhook endpoint
Designing idempotent webhook handlers
Handling checkout session
Handling subscription events
Setting up stripe-cli
Testing webhooks locally
10.
Metered Billing Subscriptions
What exactly is metered billing?
Modelling product and prices
Metered billing subscription
11.
Handling Refunds
Issuing refunds
Cancelling a PaymentIntent
12.
Working With Legacy Stripe API
Legacy Stripe API
Older APIs
Alternatives For Legacy APIs
Backward Compatible Changes
API Changelog
API upgrades
Stripe API upgrade policy
Setting API version
Entities Affected By API Upgrade
Reflecting Changes In Webhook Handlers
Rolling Back API Version
How To Stay Informed?