Feature #11530
closedFeature #11348: Integrate stripe subscription module for onboarding companies
Task 2: Self-Service Stripe Customer Billing Portal
Status:
Closed
Priority:
Normal
Assignee:
Target version:
Description
Goal: Give tenant administrators a 1-click "Manage Billing / Update Card / Cancel" button that opens Stripe's official customer portal (like Shopify/Netflix).
Subtasks
Related issues
Updated by Divya Inapakurthi 7 days ago
- Due date set to 10/15/2026
- Status changed from New to Resolved
- Start date changed from 10/14/2026 to 10/15/2026
- % Done changed from 0 to 100
Self-Service Stripe Customer Billing Portal Integration¶
Implemented self-service billing portal integration enabling tenants to manage their payment methods, invoices, and billing info:
1. Backend Endpoint
- Implemented `POST /api/v1/superadmin/tenant-billing/customer-portal`:
- Validates tenant company ID and retrieves Stripe Customer ID.
- Creates a Stripe Billing Portal session with dynamic `return_url`.
- Securely returns session URL to the client.
- Validates tenant company ID and retrieves Stripe Customer ID.
- Creates a Stripe Billing Portal session with dynamic `return_url`.
- Securely returns session URL to the client.
2. Frontend Integration (CompanyProfile.tsx)
- Connected `Update Payment Method` button in top notice banners for `past_due` accounts.
- Added `Manage in Stripe` triggers with loading state indicators.
- Cleaned up redundant button duplicates across the Company Profile view to provide a clean, single-action user experience.
3. Verification
- Verified portal URL generation and return flow on localhost.
- Verified that updating payment method in portal resolves failed payment retries.
Updated by Divya Inapakurthi 3 days ago
- Target version set to sprint (10/12/2026 - 10/31/2026)
Updated by Divya Inapakurthi about 14 hours ago
- Status changed from Resolved to Closed