#rstupek-connect-webhook

1 messages · Page 1 of 1 (latest)

tardy cosmosBOT
unborn stratus
swift loom
#

thanks... also I was trying to get the list of paymentmethods enabled on the connect account

#

Also I did try that and I am getting an error oauth_not_supported

unborn stratus
#

Can you send me the ID for that request (req_123)?

#

And I assume you are retrieving the account object and looking at its capabilities?

swift loom
#

req_wLRbhSNHdSeMbR

tardy cosmosBOT
unborn stratus
#

Ah gotcha, apologies, I did not realize there was a connect restriciton on that endpoint. It looks like it isn't currently possible to list a connect account's endpoints via the API

deft bloom
#

rstupek-connect-webhook

unborn stratus
#

Can you tell me a bit about your usecase here and what you are trying to do?

deft bloom
#

@swift loom as a platform, there's no reason for you to look at the webhook endpoint(s) configured on a connected account

swift loom
#

I'm trying to correctly configure the webhooks for a connect account programmatically as the application developer so I can handle the web hooks for payments

#

so knowing if I've already configured the webhook was my first to do

deft bloom
#

But as a platform you're not allowed to do that at all on a connected account

#

You're supposed to use this: https://stripe.com/docs/connect/webhooks
You have a specific type of webhook endpoint (Connect) on your own platform account that receives Events for all your connected accounts

swift loom
#

so to clarify, if I want to know if an afterpay payment, for example, is succesful on a connect account I am required to handle that through one webhook for all connect accounts?

deft bloom
#

yes

swift loom
#

ok little janky

deft bloom
#

It's a lot cleaner this way, each Event will have a clear property account indicating which Account it's coming from, it'll use your own platform's API version by default and any custom settings or features you might have, etc.

swift loom
#

not sure I see that as cleaner than directing the Event (payment success and failure) for an account to a webhook on their own site

#

I guess I an instruct them to setup the webhook for their account themselves, just not as low friction

deft bloom
#

they would do this in the Dashboard, which would use their account's default API version, so your code would need to basically handle any API version we ever made (and will make) which wouldn't really work

swift loom
#

I created their account for them, wouldn't that be based on the api version I used to create the account?

deft bloom
#

no it would not. The defautl API version of an account is always the latest API version at the time of their first API request

swift loom
#

ok thanks for the direction