Skip to content

TT-030: Org settings upgrade buttons send Free orgs with an abandoned Checkout to the Customer Portal ("Change to Pro") instead of Checkout #882

Closed

Description

@unjica

TT ID: TT-030 · Severity: P2 · Area: Dashboard (billing) · Found by: QA · Refs #879 (release v1.22.18, #880)

Summary

Since v1.22.18, the upgrade buttons on Settings → Organization treat any org that has a Stripe customer as an existing subscriber. A Free org with no subscription that has ever opened Checkout (e.g. every Pro/Business pricing-CTA signup that backs out of Stripe) now sees "Change to Pro / Change to Business", and clicking them opens the Stripe Customer Portal instead of Checkout. The portal has no subscription, so it shows only "Payment method / Billing information / Invoice history" with no plan to pick. The user can't upgrade from this page.

The Billing & usage page is correct ("Upgrade to …" → Checkout), because #879 switched it to hasStripeSubscription. The organization page still passes billingHealth.hasStripeCustomer (settings/organization/page.tsx → OrganizationUsageCard → OrganizationBillingActions), and OrganizationBillingActions now uses that prop to choose portal vs Checkout and the label.

This hits the Checkout cancel path directly: Stripe "Back" (cancel_url) lands on /dashboard/settings/organization?billing=canceled, which now shows the broken "Change to …" buttons.

Steps (production v1.22.18, QA accounts, nothing paid)

  1. New user: Pricing → "Start with Pro" → register → create organization → Stripe Checkout opens (live). Don't pay. Click Stripe's "Back".
  2. You land on /dashboard/settings/organization?billing=canceled. Create a project so the usage card renders (if none exists).
  3. The card shows "Change to Pro (15 €/mo)", "Change to Business (99 €/mo)", "Manage billing". Plan: FREE.
  4. Click "Change to Pro". Actual: you're sent to billing.stripe.com (Customer Portal), with no subscription and no plan options. Expected: "Upgrade to Pro", which opens Checkout (first-time subscription, unchanged per test: add pricing flow integration tests and prevent duplicate subscriptions #879).

Control: a Free org with no Stripe customer shows "Upgrade to Pro" → Checkout (OK). The same org on /dashboard/settings/billing shows "Upgrade to Pro" → Checkout (OK).

Evidence

  • Reproduced 6×, all 2026-10-27 CET on v1.22.18: an existing Free owner with a customer, Pro and Business (2), plus fresh accounts after an abandoned Checkout (qa14 Pro, qa16 Business), and the cancel landing page twice (2 fresh Business signups).
  • On v1.22.17 (12:12 CET, before the dashboard deploy) the same account's org page showed "Upgrade to Pro/Business", so this is a regression from test: add pricing flow integration tests and prevent duplicate subscriptions #879.

Suggested fix

Pass a subscription-based flag (live/unpaid status, the same as the billing page's hasStripeSubscription) to OrganizationBillingActions from the organization page / OrganizationUsageCard. Keep "Manage billing" keyed on customer existence if wanted.

Activity

  1. added
    bug
    dashboard
    qa
    on Oct 27, 2026
  2. unjica commented on Oct 27, 2026

    @unjica
    CollaboratorAuthor

    QA verification on production v1.22.19 (release #884, fix #883; API /health 1.22.19 by 13:00:21 CET, dashboard footer v1.22.19 at 13:00:41 CET).

    • Org settings on Free orgs that have a Stripe customer but no subscription (abandoned Checkout), 5/5 accounts: now shows "Upgrade to Pro (15 €/mo)" / "Upgrade to Business (99 €/mo)" (was "Change to …" + Manage billing on v1.22.18).
    • Clicking the org-page upgrade buttons opens live Stripe Checkout ("Subscribe to Telemetry Tracker Pro/Business"), not the Customer Portal: 3/3 (Pro 1, Business 2).
    • Checkout "Back" landing /dashboard/settings/organization?billing=canceled after an abandoned Checkout shows "Upgrade to Pro/Business" (1/1, fresh account).
    • No regression: fresh signups via pricing Pro/Business CTA still reach live Checkout (2/2, TT-029). Billing & usage page unchanged.

    No card entered, nothing paid. Verified fixed; closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugdashboardqa

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions