#Dooing-connect

1 messages · Page 1 of 1 (latest)

regal geyser
#

Hi there!

vagrant bane
#

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?

regal geyser
vagrant bane
#

so I assume that, in short - you are saying - no, listen to the event?

regal geyser
#

It depends what you want to do. But yes we recommend checking the connected account status with the account.updated webhook event.

vagrant bane
#

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 ?

regal geyser
#

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.

vagrant bane
#

The information is the account object will tell you the status of the account.
How? which attribute to check ?

regal geyser
vagrant bane
#

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...

regal geyser
#

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 if past_due is not empty, then the account is disabled.

vagrant bane
#

hm. Would be great if you could give a full and clear response.

#

What are all the field that must be empty / not empty so I know the account is -

#
  1. PENDING
  2. ACTIVE
  3. DISABLED