Next.js Discord

Discord Forum

Vercel Preview deployments with Stripe Webhooks

Unanswered
Munchkin posted this in #help-forum
Open in Discord
MunchkinOP
I've configured a preview deployment url for my application so that every time it deploys it deploys to preview.myapp.com. I also have configured my environment variables for this. I also have Stripe Webhooks setup, and they're working locally - but they do not work for my preview.myapp.com url.

Can anyone help with this?

6 Replies

American black bear
Did you setup the Webhook correctly in stripe Dashboard?
MunchkinOP
Yep, I actually found a workaround I’m not fond of. I had to disable Deployment Protections for my entire app
But that works. Problem is, now all of my Preview Deployments are wide open
The only way to solve that is to pay $150 a month and pick different preview URL’s to be unprotected.

I really don’t want any of them to be unprotected, but it seems to be the only thing that works.

I’m going to just have to toggle it on/off when I’m actively testing.
American black bear
That is a bit tedious. :lolsob: