#oconnor0-connect-webhooks

1 messages · Page 1 of 1 (latest)

swift tartan
#

Hello! What do you mean when you say the events are not showing up automatically? Do you mind sharing one of the event IDs that's involved here?

hazy otter
#

So for example evt_1LNkT3PGX7F5M2Pjm5mpvVrX isn't being sent anywhere by the trigger.

#

So on my Test webhook endpoint that I have configured, the only events I see listed there are the ones that I have used the CLI to send.

#

I can post the webhook endpoint ID here if that would be helpful. I'm not sure which IDs need to be kept private and which don't.

swift tartan
#

Ah I see the issue here - the reason this is happening is because the connected account that is firing off evt_1LNkT3PGX7F5M2Pjm5mpvVrX is connected to the platform account in live mode. When an account is only connected in live mode, we send ALL events (both live and test) for that connected account to the LIVE connect webhook for the platform. When an account is connected in test mode, we only send test mode events for that connected account to the TEST connect webhook on the platform.

hazy otter
#

Ah, crud. So that is because the connected account was created with the live keys?

swift tartan
#

yup

#

and I can confirm that I definitely see that event was sent to your live mode connect webhook

hazy otter
#

And it looks like livemode = false is set for test events but not for live events?

#

Yeah, I just saw that.

swift tartan
#

correct

#

We touch on that a little bit in our docs here: https://stripe.com/docs/connect/webhooks#connect-webhooks
For Connect webhooks, it’s important to note that while only test webhooks will be sent to your development webhook URLs, both live and test webhooks will be sent to your production webhook URLs. This is due to the fact that you can perform both live and test transactions under a production application. For this reason, we recommend you check the livemode value when receiving an event webhook to know what action, if any, should be taken.

hazy otter
#

Alright, I think that explains what is happening. Thanks.