Skip to content

Fix membership flow: inline checkout, exact pricing, deduplication - #532

Merged
bokelley merged 1 commit into
mainfrom
bokelley/fix-membership-flow
Jan 3, 2026
Merged

bokelley merged 1 commit into
mainfrom
bokelley/fix-membership-flow

Conversation

@bokelley

@bokelley bokelley commented Jan 3, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add inline checkout on dashboard with agreement checkbox and pay button
    • Shows exact price based on user's revenue tier instead of price range
    • Displays membership benefits and agreement inline
    • One-click checkout after accepting agreement
  • Fix promo banner to show exact price when revenue tier is known
  • Fix duplicate products on dashboard-membership page by deduplicating by price
  • Add XSS protection by escaping price values in innerHTML
  • Add null checks and race condition protection for checkout button

Before/After

Before:

  • Dashboard shows price range ($2,500 - $10,000) even after user provides revenue tier
  • Clicking "Membership" scrolls to bottom, requiring another click to navigate
  • 3-4 clicks required to reach checkout
  • Duplicate product cards shown with same price

After:

  • Dashboard shows exact price ($2,500) based on user's revenue tier
  • Inline checkout with agreement checkbox directly on dashboard
  • Single click to Stripe checkout after accepting agreement
  • Unique products only shown (deduplicated by price)

Test plan

  • Log in as visitor user → verify personal pricing shown ($250/year)
  • Log in as company user → complete profile modal → verify exact price shown
  • Click "Join Now" → verify inline checkout with agreement appears
  • Verify Pay Now button is disabled until agreement is checked
  • Navigate to /dashboard/membership → verify no duplicate product cards

🤖 Generated with Claude Code

- Add inline checkout on dashboard with agreement checkbox and pay button
  - Shows exact price based on user's revenue tier instead of price range
  - Displays membership benefits and agreement inline
  - One-click checkout after accepting agreement
- Fix promo banner to show exact price when revenue tier is known
- Fix duplicate products on dashboard-membership page by deduplicating by price
- Add XSS protection by escaping price values in innerHTML
- Add null checks and race condition protection for checkout button

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@bokelley
bokelley merged commit 04e461c into main Jan 3, 2026
6 checks passed
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.

1 participant