Add Stripe Customer Portal session API for account billing.
CI / test (pull_request) Successful in 10s
Unit Tests / test (pull_request) Successful in 9s

Expose POST /api/finance/portal/ so authenticated users can open Stripe's hosted portal for plan changes, payment methods, and cancellations (chat_web_app#33 companion).
This commit is contained in:
2026-07-31 05:48:09 -05:00
parent ee3d47c8c3
commit ac59af8b3e
9 changed files with 193 additions and 2 deletions
+2
View File
@@ -54,6 +54,8 @@ STRIPE_PRICE_ID=
FRONTEND_BASE_URL=http://localhost:3000
# STRIPE_CHECKOUT_SUCCESS_URL=http://localhost:3000/billing/success?session_id={CHECKOUT_SESSION_ID}
# STRIPE_CHECKOUT_CANCEL_URL=http://localhost:3000/billing/cancel
# Customer Portal return URL (plan change / cancel / payment method).
# STRIPE_PORTAL_RETURN_URL=http://localhost:3000/account/
# Gunicorn / ASGI
GUNICORN_WORKERS=2