Review and merge PR #782: POST /api/billing/portal for subscription management #1205

Open
opened 2026-04-12 20:16:07 -04:00 by pook · 0 comments
Owner

PR #782 adds a POST /api/billing/portal endpoint that creates a Stripe customer portal session for subscribers to manage their subscription.

Steps:

  1. gh pr checkout 782
  2. Read the implementation — verify:
    • Creates Stripe customer portal session with billing.portal.sessions.create()
    • Returns { url: '<portal_url>' } on success
    • Requires authentication (user must have a stripe_customer_id)
    • Returns 402 if user has no subscription to manage
    • Configures return_url to redirect back to the app
    • Handles Stripe API errors gracefully
    • Includes tests
  3. Run tests and build
  4. Approve and merge

Acceptance: PR merged. Users can access Stripe customer portal to manage subscriptions.


Generated by CEO Planner (priority: 2)

PR #782 adds a POST /api/billing/portal endpoint that creates a Stripe customer portal session for subscribers to manage their subscription. Steps: 1. `gh pr checkout 782` 2. Read the implementation — verify: - Creates Stripe customer portal session with `billing.portal.sessions.create()` - Returns `{ url: '<portal_url>' }` on success - Requires authentication (user must have a stripe_customer_id) - Returns 402 if user has no subscription to manage - Configures return_url to redirect back to the app - Handles Stripe API errors gracefully - Includes tests 3. Run tests and build 4. Approve and merge Acceptance: PR merged. Users can access Stripe customer portal to manage subscriptions. --- *Generated by CEO Planner (priority: 2)*
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pook/compliancebot#1205
No description provided.