#Raphael_z-webhooks
1 messages ยท Page 1 of 1 (latest)
I can't listen events for my test environment via a webhook ?
can you clarify? is there a specific error on unexpected behaviour you're seeing when attempting this?
Yes for sure...a unexpected behavior...I want to be able in test mode to listen and catch all the events that I'm listening via the webhook but it is not the case...
what exactly are you doing, can you share some code or screenshots of what you see or do not see?
yes my webhook is not working on test mode
one moment
this in my webhook and I am on test mode
when I create a payment
the webhook doesn't catch any data ..
nothing happens...and I don't understand why
my webhook is supposed to listen all the events
Hi there ๐ I'm taking a closer look, please bear with me.
It seems that you're using both a platform and a connected account. Can you help me understand what it is you're trying to do? Which account are you triggering the events on?
No worries, I've dug into things a bit more and think I see what's going on.
Bear with me as I try to articulate it.
I want to be able to listen and get data from events via my webhook but on test mode it doe'snt work
I looked at the topmost payment intent shown in your screenshot. I can see that it was created on your connected account, the same one shown in your first screenshot. That account has a webhook endpoint set up, but it's configured to receive Connect events. Connect events are sent for connected applications, but in this case as the event is on the account with the webhook an account (also known as direct) webhook would be needed.
This article helps further articulate the differences between the two types of webhooks:
https://stripe.com/docs/connect/webhooks
thank you toby
So I will look into the documentation via the link that you sent me
should I change the webhook type ? to direct maybe?
to receive the events linked to test mode
Unfortunately you can't change the webhook type once it's created, so you'll need to create another. If you're creating it in the dashboard, then you'll want to leave this box unchecked.
and then my webhook will be able to listen events and get the data from the test mode right?
This has nothing to do with test vs live mode, it revolves around direct vs connect.
Unless you're trying to do something other than what I've pieced together.
Not a problem! If that gives you any more problems, you know where to find us ๐
to understand if my webhook is direct I will not receive events from connected accounts?
Correct:
Direct webhooks receive events from their own account
Connect webhooks receive events from connected accounts
Technically, you can. You would just create two webhooks, one of each type. I'd warn against routing them to the same place on your server though as that can make troubleshooting/debugging difficult in addition to adding complexity to signature verification flows.
I understand ! thanks ๐ ๐