Subscription Lifecycle
Understanding the subscription lifecycle
Overview
Understanding the subscription lifecycle is crucial for managing recurring payments effectively. This guide outlines the recommended subscription flow, focusing on payment behavior and status transitions.
Subscription Flow
You create the subscription (When user complete first checkout session of subscription mode) . The
status
of the subscription isincomplete
.An invoice is created for the subscription. The
status
of the invoice isopen
.User is auto charged for first payment successfully,
When the payment succeeds:
The subscription
status
moves toactive
The invoice
status
is set topaid
Stripe sends an
invoice.paid
event webhook event.
You provision access to your product. You can confirm whether the invoice has been paid by:
Setting up a webhook endpoint and listening for the
invoice.paid
event.Manually checking the subscription object and looking for
subscription.status=active
. Thestatus
becomesactive
when the invoice has been paid either through an automatic charge or having the customer pay manually.
Last updated