Skip to content

Increase Masterclass price to $199 with countdown to $299#392

Merged
simonhamp merged 1 commit into
mainfrom
increase-masterclass-price
May 28, 2026
Merged

Increase Masterclass price to $199 with countdown to $299#392
simonhamp merged 1 commit into
mainfrom
increase-masterclass-price

Conversation

@simonhamp
Copy link
Copy Markdown
Member

@simonhamp simonhamp commented May 28, 2026

Summary

  • Raises the NativePHP Masterclass price to $199 immediately, with a countdown to a $299 increase at 2026-06-15 00:00 UTC (fixed instant for everyone — the deadline is timezone-anchored in UTC).
  • When the deadline passes, the countdown hides and $299 pricing is shown automatically; checkout switches to the $299 price.
  • Surfaces the countdown in three places: the public /course page, the /dashboard/course purchase page, and a new card on the main /dashboard for users who haven't bought yet.

Changes

  • Config / env: adds STRIPE_COURSE_PRICE_ID_199 and STRIPE_COURSE_PRICE_ID_299 env keys, plus a single shared services.stripe.course_price_increase_at deadline so routes and components stay in sync.
  • Checkout (routes/web.php): selects the $199 or $299 Stripe price based on the deadline.
  • Reusable component resources/views/components/course/countdown.blade.php: an Alpine countdown that auto-hides itself once the deadline passes.
  • Public course page (course.blade.php): dynamic price, countdown under the hero CTA and in the pricing card, $199→$299 swap.
  • Dashboard course page (livewire/customer/course.blade.php): dynamic pricing + countdown; also makes the gradient hero full-bleed across the main area (lifts flux:main's max-w-7xl cap for this page via a scoped :has() rule).
  • Main dashboard (Dashboard.php + dashboard.blade.php): new masterclass countdown card shown only to non-owners before the deadline, gated by the ShowMasterclass feature.

Notes

  • Local checkout currently redirects to the course page because STRIPE_COURSE_PRICE_ID_199/_299 aren't set in .env — these must be configured in each environment for checkout to reach Stripe.

Test plan

  • tests/Feature/CoursePageTest.php — $199 before / $299 after deadline; checkout uses correct price ID per deadline; not-configured guards
  • tests/Feature/CourseContentTest.php — dashboard course page pricing before/after deadline
  • tests/Feature/DashboardLayoutTest.php — dashboard card shows for non-owners pre-deadline, hidden after deadline and for owners
  • Set the real Stripe price_... IDs in each environment and confirm the Buy buttons reach Stripe checkout

🤖 Generated with Claude Code

Raise the Masterclass price to $199 immediately and show a countdown to
the $299 increase at 2026-06-15 00:00 UTC. After the deadline the
countdown hides and $299 pricing is shown. Adds STRIPE_COURSE_PRICE_ID_199
and STRIPE_COURSE_PRICE_ID_299 env keys and a shared deadline config value,
a reusable countdown component, and surfaces the countdown on the public
course page, the dashboard course page, and as a card on the main dashboard.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@simonhamp simonhamp marked this pull request as ready for review May 28, 2026 05:37
@simonhamp simonhamp merged commit 9b5761a into main May 28, 2026
2 checks passed
@simonhamp simonhamp deleted the increase-masterclass-price branch May 28, 2026 05:44
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