Skip to content

fix(billing): remove grandfathered pricing option when subscription lapses#7583

Merged
nmgarza5 merged 1 commit intomainfrom
nikg/subscription-renewal-force-new-pricing
Jan 20, 2026
Merged

fix(billing): remove grandfathered pricing option when subscription lapses#7583
nmgarza5 merged 1 commit intomainfrom
nikg/subscription-renewal-force-new-pricing

Conversation

@nmgarza5
Copy link
Copy Markdown
Contributor

@nmgarza5 nmgarza5 commented Jan 20, 2026

Description

Remove the "Manage Existing Subscription" button from the AccessRestrictedPage when a multi-tenant user's subscription lapses.

Previously, users with lapsed subscriptions saw two confusing options:

  • "Resubscribe" → creates new subscription at current pricing ($25)
  • "Manage Existing Subscription" → opens Stripe portal where they could potentially renew at grandfathered rates ($8)

Now users only see "Resubscribe", which standardizes the renewal flow to always use current pricing. If a user pays their bill on time as expected, they will still use their grandfathered price.

How Has This Been Tested?

2026-01-20 13 34 12

Additional Options

  • [Optional] Override Linear Check

@nmgarza5 nmgarza5 requested a review from a team as a code owner January 20, 2026 19:31
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps bot commented Jan 20, 2026

Greptile Summary

Removes the "Manage Existing Subscription" button from the AccessRestrictedPage to prevent users with lapsed subscriptions from renewing at grandfathered rates ($8) through the Stripe customer portal. Users now only see the "Resubscribe" button which creates a new subscription at current pricing ($25).

Changes:

  • Removed handleManageSubscription function and associated state management
  • Removed "Manage Existing Subscription" button from UI
  • Cleaned up unused imports (fetchCustomerPortal, useRouter)

The implementation is clean and complete. All unused code has been properly removed, which aligns with the codebase's preference for removing dead code rather than commenting it out.

Confidence Score: 5/5

  • This PR is safe to merge with no issues
  • The change is straightforward and intentional: removes the "Manage Existing Subscription" button and its handler to prevent users from accessing grandfathered pricing. Code is clean, unused imports were properly removed, and no logic errors introduced.
  • No files require special attention

Important Files Changed

Filename Overview
web/src/components/errorPages/AccessRestrictedPage.tsx Removed "Manage Existing Subscription" button and associated handler function; cleanly removed unused imports

Sequence Diagram

sequenceDiagram
    participant User
    participant AccessRestrictedPage
    participant StripeCheckout
    
    Note over User,StripeCheckout: After This PR
    User->>AccessRestrictedPage: Sees lapsed subscription page
    AccessRestrictedPage->>User: Shows "Resubscribe" button only
    User->>AccessRestrictedPage: Clicks "Resubscribe"
    AccessRestrictedPage->>StripeCheckout: Creates new subscription session ($25)
    StripeCheckout->>User: Redirects to Stripe checkout
Loading

@nmgarza5 nmgarza5 changed the title Remove grandfathered pricing option when subscription lapses fix(billing): remove grandfathered pricing option when subscription lapses Jan 20, 2026
When a subscription lapses, users now only see the "Resubscribe" option
which creates a new subscription at current pricing. This removes the
"Manage Existing Subscription" button that allowed users to potentially
renew at grandfathered rates through the Stripe customer portal.
@nmgarza5 nmgarza5 force-pushed the nikg/subscription-renewal-force-new-pricing branch from 1449096 to bbd8714 Compare January 20, 2026 21:39
@nmgarza5 nmgarza5 enabled auto-merge January 20, 2026 21:45
@nmgarza5 nmgarza5 added this pull request to the merge queue Jan 20, 2026
Merged via the queue into main with commit 258e137 Jan 20, 2026
76 checks passed
@nmgarza5 nmgarza5 deleted the nikg/subscription-renewal-force-new-pricing branch January 20, 2026 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants