How subscription data is loaded
On page load, the route loader reads thecustomerId from the session cookie and fetches all subscriptions for that customer directly from Stripe.
app/routes/account.tsx
app/services/payment.ts
Subscription card details
Each subscription is displayed with the following information:| Field | Source | Notes |
|---|---|---|
| Subscription ID | subscription.id | Rendered as a link to the Stripe Dashboard for that subscription |
| Status | subscription.status | Common values: active, past_due, incomplete, canceled |
| Card last 4 digits | subscription.default_payment_method.card.last4 | The card used to pay for this subscription |
| Current period end | subscription.current_period_end | Unix timestamp of when the current billing period ends |
The subscription ID link points to the Stripe Dashboard. In test mode this opens
https://dashboard.stripe.com/test/subscriptions/{id}. In live mode the /test/ segment is omitted.Subscription statuses
active
active
The subscription is in good standing. The most recent invoice was paid successfully and the customer has access to the product.
past_due
past_due
The most recent invoice was not paid by the due date. Stripe will retry the charge according to your retry settings. The customer may lose access depending on your dunning configuration.
incomplete
incomplete
The subscription was created but the first invoice has not been paid. This state occurs if the user started the checkout flow but did not complete the payment step.
canceled
canceled
The subscription has been canceled and will not renew. Canceled subscriptions remain in the list for record-keeping.
Navigation options
The account page provides two navigation links:Add a subscription
Takes the user back to the plan selection page to purchase an additional subscription under the same customer account.
Restart demo
Returns the user to the home page. In a demo context this effectively resets the flow so a new customer can be registered.
“Restart demo” does not clear the session cookie or delete the Stripe customer. It only navigates to
/. If you want a full reset, the session must be explicitly destroyed server-side or the cookie must expire.Viewing subscriptions in Stripe
Each subscription ID on the account page links directly to the Stripe Dashboard. From there you can:- View invoice history
- Cancel or pause the subscription
- Update the payment method
- Issue refunds