Repository navigation
fix(marketing): carry paid pricing CTA plan intent into Stripe Checkout - #872
Merged
Merged
Conversation
- Update pricing CTAs: paid tiers now show 'Start with Pro/Business' (unauthenticated) or 'Upgrade to Pro/Business' (authenticated) - Add plan query param helpers: parsePaidPlanQueryParam, paidPlanQueryToCheckoutTier - RegisterPageForm: redirect to billing with plan after registration when plan=pro|business - crossAuthHref: preserve plan param across register↔login, set next to billing when plan set - Middleware: preserve plan on legacy ?signUp=1 redirects, redirect signed-in /register?plan=... to billing - BillingPlanIntent: auto-trigger Checkout once when eligible plan query param present - Add comprehensive tests: pricing CTAs, plan parsing, crossAuthHref, register redirect, middleware, billing intent - Zero changes to Stripe integration, webhooks, or billing business logic Co-authored-by: Sanja Malovic <[email protected]>
This was referenced Oct 27, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Base branch:
developSummary
This PR fixes the pricing page CTAs to carry paid plan intent through registration/login into the existing Stripe Checkout flow. Previously, Pro and Business CTAs said "Start free, upgrade later" and linked to
/registerwith no indication of plan intent. Now they clearly label the plan and carry?plan=pro|businessthrough the auth flow to auto-trigger Checkout when eligible.Changes:
?plan=...query paramsparsePaidPlanQueryParam,paidPlanQueryToCheckoutTierinplan-pricing.tsplan=pro|businessnextto billing when plan is set?signUp=1redirects, redirects signed-in users on/register?plan=...to billingNo changes to:
ref/via), ornextsafety rulesHow to test
Local:
All checks pass. See attached QA-PLAN.md for manual testing scenarios.
Key flows to verify (preview deploy):
/pricing: Pro CTA → "Start with Pro" →/register?plan=pro?plan=pro→ lands on/dashboard/settings/billing?plan=pro→ Checkout starts/pricing: Pro CTA → "Upgrade to Pro" →/dashboard/settings/billing?plan=pro→ Checkout/register?plan=pro→/loginhasnextpointing to billing with plan/register?plan=business→ redirected to billing with planCode review (Bugbot)
/review-bugbotin Cursor (optional while the gate is paused)Checklist
pnpm test)pnpm lint)pnpm build)[Unreleased](skipped per instructions: minimal UX fix)Security / privacy
No auth, ingest, or data-handling changes. Plan intent is client-side only (query params) and does not alter Stripe session creation or webhooks.