#Bob the builder - webhook
1 messages · Page 1 of 1 (latest)
Hi there, happy to help!
For connect webhooks, both live and test webhooks are sent to the live endpoint, you can check livemode is true or not to distinguish between them
https://stripe.com/docs/connect/webhooks#:~:text=both live and test webhooks will be sent to your production webhook URLs
The problem is that I only received a webhook for live endpoint, and none for test endpoints
E.g., evt_3LXhhSDBJ1IKnAB70dBR0L8d was sent to the test mode endpoint too
Received isnt the right word. I mean, in stripe dashboard logs I dont see it as being sent
For clarification, the webhook endpoints are set up on a platform account. The event happened on a connected account
So if you have a live mode connection between the connected account and the platform account, you'll receive both test and live event only for the live mode webhook endoint
which is the case for your event evt_3LXhllLF85aatOUG0CYtcll6
If you have a test mode connection between the connected account and the platform account, you'll receive only test events to your test mode wehook endpoint
If you have both test and live mode connection between the connected account and the platform account, you'll receive both test and live events to the live endoint, and only test event to the test endpoint
which is the case for you event
evt_3LXhhSDBJ1IKnAB70dBR0L8d
You can refer to this diagram it summarise the use case detailed above 👆