Stripe Webhook Question

I found something odd about Stripe’s web hooks.

I have a payment_intent.succeeded web hook going with a myriad of actions. However, every time I close and open my project the webhook stops working. I have to right click and test the web hook action first for it to work.

My question is, how will this work when I deploy to the live server? Do I have to test it again once deployed to Digital Ocean? Will I have to do this periodically.

If anyone can enlighten me on this subject, I would very much appreciate it. Thank you.

Nope, the test process in local dev is different than a remotely deployed url. This is because your localhost is not publicly reachable by Stripe, so you have to start the local test listener (or use ngrok) so that Stripe can reach your server.

When deployed to a publicly available URL, Stripe can reach it without intervention.

3 Likes

Awesome! Thank you for clearing that up for me. I appreciate it a lot.

1 Like