Billing

Manage your subscription. (This page is a stub until auth and real customer identity are wired.)

Current plan

TODO: show the signed-in user’s active subscription (plan name, status, renewal date).

  • Plan: unknown
  • Status: unknown
  • Renews on: unknown

Manage billing

This button is wired to a minimal Stripe Customer Portal endpoint.

TODO / setup notes

Stripe is owned by the API. This page calls /api/billing-portal, which proxies to the API’s /billing/portal endpoint.

  • Web: set HC_API_URL (e.g. http://localhost:4000).
  • API: set STRIPE_SECRET_KEY + price IDs and (optionally) STRIPE_PORTAL_CONFIGURATION_ID.
  • Until auth is wired, the web app generates an anonymous userId and stores it in an hc_uid cookie.

Next step: replace the anonymous hc_uid cookie with a real authenticated user id.