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/tjs 62 Make EW stripe webhook handler deal with TJS stripe events #1427

Conversation

jbranchaud
Copy link
Contributor

@jbranchaud jbranchaud commented Mar 7, 2024

Note: I've tested this locally against TT, EW and TJS. All looks good.

This PR makes some updates to Stripe webhook handling in the skill-api. The epic-web app receives stripe webhook events for all kcd-products. For the events that are for one of the other kcd-products (e.g. testing-javascript), they will be forwarded along to that app so that it can process them in the proper context (that context is important for things like sending emails).

We know what app a webhook is meant for because we include the siteName in the webhook metadata. At this point, this is mainly relevant for customer.updated and checkout.session.created.

  • feat: add app name to env var type
  • feat: epic-web forwards stripe events to tjs

handler

Copy link

linear bot commented Mar 7, 2024

Copy link

vercel bot commented Mar 7, 2024

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

Name Status Preview Comments Updated (UTC)
badass-turbo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 7, 2024 8:54pm
colt-steele ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 7, 2024 8:54pm
devrel-fyi ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 7, 2024 8:54pm
epic-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 7, 2024 8:54pm
pro-aws ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 7, 2024 8:54pm
pro-nextjs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 7, 2024 8:54pm
skill-stack-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 7, 2024 8:54pm
testing-javascript ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 7, 2024 8:54pm
total-typescript-turbo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 7, 2024 8:54pm

Copy link
Contributor

@joelhooks joelhooks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙏🏻

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.

None yet

2 participants