Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jbranchaud/egg 270 create lifetime membership checkout session #1441

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

jbranchaud
Copy link
Collaborator

@jbranchaud jbranchaud commented Apr 29, 2024

This PR does two core things:

First, it sets up the pre-purchase flow for Lifetime Subscriptions via the /forever path. This collects an email if the user is not already signed in and then hands them off to a Stripe checkout session.

Second, it handles the post-purchase flow. This sets up egghead-next to process Stripe webhook events for checkout.session.completed via inngest. It will only process for a specific purchase (stripe price ID) because everything else should be handled by the egghead-rails backend.

Note: this depends on some API changes being merged into egghead-rails before this changes can be deployed.

Deployment Task

  • Add checkout.session.completed to the list of events for the production webhook endpoint

  • feat: change stripe sub checkout to named export
  • feat: add Lifetime Membership pre-purchase flow
  • feat: set up stripe webhooks for inngest
  • feat: process stripe webhook with inngest

life time

Copy link

linear bot commented Apr 29, 2024

Copy link

vercel bot commented Apr 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
egghead-io-nextjs ❌ Failed (Inspect) May 24, 2024 5:08pm

@jbranchaud jbranchaud force-pushed the jbranchaud/egg-270-create-lifetime-membership-checkout-session branch from 6f52fdd to e751192 Compare May 6, 2024 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants