#Dooing-connect
1 messages · Page 1 of 1 (latest)
Hi there!
You should listen to the webhook event account.updated https://stripe.com/docs/api/events/types#event_types-account.updated
The information is the account object will tell you the status of the account.
ok, yeah, I thought there is probably an event too - but since I just need the info when a customer pays - (invoice event) I was thinking of maybe just getting this info just in time from the account object?
"lazy"
is there maybe an attribute of the account object that would tell me its state?
is there maybe an attribute of the account object that would tell me its state?
It's a bit more complicated that a single attribute. This is covered in this doc: https://stripe.com/docs/connect/identity-verification-api#determining-if-identity-or-business-verification-is-needed
so I assume that, in short - you are saying - no, listen to the event?
It depends what you want to do. But yes we recommend checking the connected account status with the account.updated webhook event.
and, do I see it correctly that the account will not necesarily stay "ACTIVE" but might be deactivated from stripe and or the end customer also at a later time, async?
The information is the account object will tell you the status of the account.
How? which attribute to check ?
I see it correctly that the account will not necesarily stay "ACTIVE" but might be deactivated from stripe and or the end customer also at a later time, async?
Yes that's correct.
The information is the account object will tell you the status of the account.
How? which attribute to check ?
Have you read that link: https://stripe.com/docs/connect/identity-verification-api#determining-if-identity-or-business-verification-is-needed
You need to check the requirements hash
I read it, but it is not fully clear, unfortunately. "hash" is very fussy. It seems it does not mean a "Java hashcode" or an actual attribute, but some business state. I found related to my question probably:
stripeAccount.getPayoutsEnabled();
stripeAccount.getRequirements().getCurrentlyDue();
stripeAccount.getRequirements().getPastDue();
I want to SEND money to this account -
so do I have to check - getPayoutsEnabled for 'true'-
or alternaitvely - do I have to check if currentlyDue and pastDue are empty??
that is a rather confusing way to check if the account is ready or not
and there is further:
stripeAccount.getRequirements().getErrors() != null;
stripeAccount.getRequirements().getDisabledReason() != null;
I would like to know - VERIFICATION - PENDING or SUCCESSFULL or FAILED...
or alternaitvely - do I have to check if currentlyDue and pastDue are empty??
Yes, looking at these will tell you the account status. For example ifpast_dueis not empty, then the account is disabled.