#IsmailSarikaya-webhook

1 messages ยท Page 1 of 1 (latest)

humble wyvern
#

Is your webhook endpoint on platform or connected account?

runic bobcat
#

Our webhook is running in our server. I actually couldn't quite understand.

#

We only received 'application_fee.created' event.

left blade
#

๐Ÿ‘‹ , I'm taking over for @humble wyvern, just give me a few minutes to catch up

runic bobcat
#

sure

left blade
#

so basically, what's happening is that you have a payment intent created on your Connected Account but on your Platform's account, you only have setup the webhook for your Platform's events and not the Connect event

runic bobcat
#

Thanks I will read it.

#

You say this check box, right? If I check here I will start receiving events for my connected accounts?

left blade
#

yes but you need both webhooks

#

so don't delete the other webhook endpoint

runic bobcat
#

Do I have to create to separated webhook?

#

I mean, I want to handle both my platform and connected account with only one webhook.
If I check this box, are you going to send me events both for my platform and connected accounts?

left blade
#

no unfortunately you have to have both

#

this checkbox makes that webhook endpoint listen only to the events on Connected accounts

runic bobcat
#

Only events for connected accounts, right?

left blade
#

yes

runic bobcat
#

Ok I understand, I really didn't think it works like this way ๐Ÿ™‚ . So strange I think.

#

But anyway, thank you so much. I will handle it.

left blade
#

yeah we're getting this feedback from many users and our teams are working on demystifying that whole confusion

#

we're sorry about this

runic bobcat
#

I found a trick. I added same endpoint for connected account. And it worked ๐Ÿ˜ƒ

left blade
#

one thing regarding that, I would advise you to have a query param that you configure to know whether it comes from a connect webhook or from your platform

runic bobcat
#

Does it matter?

left blade
#

yes sometimes it does

#

you need to know whether you need to access using your Platform's API key or the Connect API key some objects or stuff like that

#

I would suggest configuring your endpoints like this /webhooks?foo=bar

runic bobcat
#

Ok I will add suffix like that.
Now we are using webhooks for all payment intents events and refund event. For what event, do I need to know its source?

#

And what is Connect Api key?
Because at backend I am using secret key and at mobile we are using publishable key.

proud timber
#

sorry, we meant webhook signing secret (whsec_xxx), not API key.