#Raphael_z-webhooks

1 messages ยท Page 1 of 1 (latest)

narrow swift
#

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?

sharp patrol
#

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...

narrow swift
#

what exactly are you doing, can you share some code or screenshots of what you see or do not see?

sharp patrol
#

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

hexed coral
#

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?

sharp patrol
#

Hi toby

#

Sorry if it is not very clear

hexed coral
#

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.

sharp patrol
#

I want to be able to listen and get data from events via my webhook but on test mode it doe'snt work

hexed coral
#

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.

sharp patrol
#

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

hexed coral
#

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.

sharp patrol
#

and then my webhook will be able to listen events and get the data from the test mode right?

hexed coral
#

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.

sharp patrol
#

Got it !!

#

thank you toby for your assistance

#

have a great day!

hexed coral
#

Not a problem! If that gives you any more problems, you know where to find us ๐Ÿ˜„

sharp patrol
#

to understand if my webhook is direct I will not receive events from connected accounts?

hexed coral
#

Correct:
Direct webhooks receive events from their own account
Connect webhooks receive events from connected accounts

sharp patrol
#

so I can't receive both unfortunately...

#

thank you it is very clear now

hexed coral
#

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.

sharp patrol
#

I understand ! thanks ๐Ÿ‘ ๐Ÿ™‚