Stripe Webhooks
Hi, I've been struggling with the Stripe Webhooks for a while.
Here is my webhook route (src/pages!/api/webhooks/stripe.ts):
No matter how I change this, I get a 500 response without a body in Stripe.
This has become a bit messy from what I had at first.
Is there some config in T3 in other places that I need to modify to allow for webhooks from stripe? Or am I missing something?
I have the correct webhook secret, the correct stripe api key, and it sends webhooks to my vercel url.
5 Replies
you can check this repo about t3 + stripe
GitHub
GitHub - nramkissoon/t3-stripe: Example Stripe integration with cre...
Example Stripe integration with create-t3-app bootstrapped Next.js application - GitHub - nramkissoon/t3-stripe: Example Stripe integration with create-t3-app bootstrapped Next.js application
and you can use this webhook tool to test the implementation
webhookthing
an easier way to develop with webhooks locally
Thanks, will take a look!