Connected
When account linking is live, this page can open the secure billing portal.
Account handoff
Subscription management will route users into the secure billing portal when account linking is available.
Billing flow states
When account linking is live, this page can open the secure billing portal.
Update payment method, cancel, view invoices, or switch plan.
If no subscription is found, route the user to billing support.
Actual payment architecture
The website return pages are informational and recovery-oriented. The extension remains responsible for starting checkout, polling status, and syncing the local tier.
Extension calls `create-checkout` with price and plan ID. Stripe receives the customer and subscription request.
Stripe returns to `/prolifica/checkout-success?session_id={CHECKOUT_SESSION_ID}` or `/prolifica/checkout-cancel`.
Supabase Stripe Sync Engine mirrors Stripe subscription data into the database.
Prolifica polls `get_my_subscription_status()` and syncs the local tier through licenseManager.
The hosted page is ready for the billing portal handoff. Live portal session creation still belongs to the Prolifica payment flow.