Project

General

Profile

Edit Copy Actions

Feature #11530

closed

Feature #11348: Integrate stripe subscription module for onboarding companies

Task 2: Self-Service Stripe Customer Billing Portal

Added by Divya Inapakurthi 8 days ago. Updated about 13 hours ago.

Status:
Closed
Priority:
Normal
Start date:
10/15/2026
Due date:
10/15/2026
% Done:

100%

Estimated time:
Spent time:

Description

Goal: Give tenant administrators a 1-click "Manage Billing / Update Card / Cancel" button that opens Stripe's official customer portal (like Shopify/Netflix).


Add

Subtasks


Add

Related issues

Actions #1

Updated by Divya Inapakurthi 8 days ago

  • Assignee set to Divya Inapakurthi

Updated by Divya Inapakurthi 6 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.

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.

Actions #3

Updated by Divya Inapakurthi 3 days ago

  • Target version set to sprint (10/12/2026 - 10/31/2026)
Actions #4

Updated by Divya Inapakurthi about 13 hours ago

  • Status changed from Resolved to Closed
Edit Copy Actions

Also available in: Atom PDF