Add post-purchase flow with sync license creation#276
Merged
simonhamp merged 2 commits intonativephp-masterclass-landingfrom Mar 9, 2026
Merged
Add post-purchase flow with sync license creation#276simonhamp merged 2 commits intonativephp-masterclass-landingfrom
simonhamp merged 2 commits intonativephp-masterclass-landingfrom
Conversation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ase confirmation Instead of synchronously creating licenses on the /course page after Stripe checkout, redirect to the existing cart/success page that polls for webhook confirmation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
simonhamp
added a commit
that referenced
this pull request
Mar 9, 2026
* Add NativePHP Masterclass landing page with Stripe checkout - Create /course landing page with hero, curriculum, audience, pricing, and email signup sections - Wire up Stripe checkout for one-time $99 early bird payment using Cart/Product infrastructure - Add migration to seed Masterclass product and price in the database - Integrate Mailcoach for email waitlist signup via direct form POST - Fix null stripe_price crash in CustomerLicenseController dashboard - Add feature tests for course page Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Add Learn link to main nav, mobile menu, and footer Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Update masterclass price to $101 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Auto-submit checkout after login/registration flow Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Add availability timeline section for Summer/Fall 2026 launch Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Add New pill to Learn links and fix mobile menu on large screens Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Add post-purchase flow with sync license creation (#276) * Add post-purchase flow with sync license creation and success banner Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Redirect course checkout to cart success page for webhook-based purchase confirmation Instead of synchronously creating licenses on the /course page after Stripe checkout, redirect to the existing cart/success page that polls for webhook confirmation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
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.
Summary
{CHECKOUT_SESSION_ID}template in the success URL so we can verify payment on return/course?session_id=..., the route verifies the Stripe session and creates theProductLicensesynchronously if the webhook hasn't processed the cart yetTest plan
ProductLicenserecord is created in the database after purchase🤖 Generated with Claude Code