Skip to content

CO.32: Billing

Summary

Counselors manage their own subscription, credits, billing history, and referrals from the shared billing page.

Role

  • Primary: Counselor

Entry Point

  • URL: /billing
  • Sidebar: Billing

Preconditions

  • User is authenticated.
  • Billing APIs are available.

Steps

  1. Counselor opens /billing.
  2. Frontend renders billing tabs for plans, credits, history, and referrals.
  3. Counselor reviews current plan and available options.
  4. Counselor manages credits or views transaction history.
  5. Billing actions call the billing API/provider flow.

Diagram

Edge Cases

  • Provider errors: Payment/provider failures surface through billing UI.
  • Role reuse: Client and counselor use the same billing page with role-specific data.
  • Admin billing: Platform billing management is a separate admin flow.

Current Implementation Notes

  • Frontend: frontend/src/app/pages/billing.tsx, frontend/src/features/billing

Screenshot Status

  • Captured: billing.png