#RichStoneIO-connect-webhooks

1 messages ยท Page 1 of 1 (latest)

soft cargo
#

Hello!

#

We assume that there's no way for Stripe to know which webhook is relevant to our platform so Stripe sends everything our way by default and we need to filter the webhooks on our end, right?
Yep, you'll receive all events from connected accounts regardless of whether they're related to your app/platform

#

Is there an easy way to filter webhooks in order to know if they belong to a purchase on our platform? (other than start fiddling with metadata)
That I'm aware of, no (it's a point of contention that we've taken steps to remedy, but it doesn't apply retrospectively to older accounts)

dim totem
#

Hey ynnoj, nice to see you again here in the chat and thanks for your thoughts!

So the way is to receive all the webhooks on our servers and to add metadata to our objects so we can return early from the webhook handling process before doing any other checks on the data?

cunning canopy
#

Hi ๐Ÿ‘‹ jumping in as my teammate needs to step away soon. Leveraging metadata is definitely an option for handling this scenario, I'm running a test to see if you could also use the application field.

#

Yeah, looks like you can retrieve an object that you know your platform created, check the ID in the application field to learn your application ID, and then use that to check for objects that you created.

dim totem
#

Hey Toby! Thanks a lot for looking into this! This might save us a lot of time and effort because we'd need to set the metadata on all the possible objects that we handle in a webhook now and in future.

#

So is it that the application id (like ca_asdf23423) is the ID of the application to which the Connected account is connected? I.e. our application?

#

I've found the application ID in the payload of the payment intent webhook requests but when I look for it in our Stripe account or in the Connected account I don't get any resource ๐Ÿค”

cunning canopy
#

when I look for it in our Stripe account or in the Connected account I don't get any resource
Can you clarify what you mean or what you're doing?

dim totem
#

nevermind, I was trying to look for this "application ID" but it's just our live Connected mode client ID. I think this is exactly what we need and we should be able to reliably check for it to filter on our webhooks only!

#

๐Ÿ™

cunning canopy
#

๐Ÿฅณ