I've tested my webhooks locally, using the CLI, and they work fine. However, when I took the webhooks live and deployed them to Heroku, and went into "live" mode on Stripe (which I assume is necessary to be able to use live webhooks), Stripe just doesn't fire events at all, they don't appear in the dashboard, webhook endpoint doesn't get any requests, nothing; for example, no account.updated
when a I try to create a Connected account, or no checkout.session.complete
when I try to complete a Checkout purchase. Is there a step I've perhaps missed when taking my webhooks online?
If you're using Stripe Connect, webhooks won't fire if you selected the wrong type
.
When you set up a new webhook, there's a radio button that asks whether it's for 'Account' or 'Connect':
I had correctly selected 'Connect' when I set up my 'test' webhooks, but I had accidentally selected 'Account' for the production ones, which is why they weren't firing at all.
So just double check that you correctly selected 'Connect' or 'Account'. I don't think there's a way to alter it on existing endpoints, so I just created identical new ones with the correct type and everything suddenly worked as expected.
I ran into this issue myself- a few ideas:
For example:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With