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

Handles unsupported Stripe events sent to webhook. #254

Closed

Conversation

kevinkatzke
Copy link

This commit adds and handler that throws and error when Stripe sends unsupported events to the applications webhook endpoint <project-url/api/webhooks>. The error messages can be obtained from the Vercel logs.

Use case:
I tried to delete products in Stripe and wondered why the Supabase DB wasn't reflecting the changes. I noticed that app/webhooks/route.ts doesn't support the Stripe event product.deleted when it is sent to the webhook. This commit adds a relevant error message, making it easier for users to debug such cases.

@vercel
Copy link

vercel bot commented Oct 9, 2023

@kevinkatzke is attempting to deploy a commit to the Vercel Solutions Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

@orca-security-us orca-security-us bot left a comment

Choose a reason for hiding this comment

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

Orca Security Scan Summary

Status Check Issues by priority
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca

@chriscarrollsmith
Copy link
Contributor

Deletion of products and sensible error handling are supported by this PR: #271

@leerob
Copy link
Member

leerob commented Feb 12, 2024

#278

@leerob leerob closed this Feb 12, 2024
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.

3 participants