#vasynyt-connect

1 messages · Page 1 of 1 (latest)

sonic maple
#

The "account.application.authorized" contains some id which isn't specified in the docs and I thought I could use this to fetch the created accout and determine if it has charges enabled, but no luck
so the event there contains an "application", which is your platform basically(the ID ca_xxx is the one you might have used in your OAuth link for example)

#

the account ID of the connected account is just in the overall event though

#

since you are (presumably) using a Connect endpoint, the account ID that the event happened on is in the event.account https://stripe.com/docs/api/events/object#event_object-account so you can use that to retrieve the account and check if it's enabled(and then listen to account.updated for any changes)

young tusk
#

Thanks! May I ask what do you mean by ”Connect endpoint”?

sonic maple
#

if you're getting this account.application.authorized event then I'd think you have an endpoint like that set up since that's how you get it, I believe

#

that event happens on the connected account(the contents of it describe the platform that just connected), and is then sent to the platform

young tusk
#

I see. Also is my assumption right that when the account has charges_enabled true, then the onboarding is complete?

sonic maple
#

in general yep! but the real check is to look into the requirements hash on the object