#jmak

1 messages · Page 1 of 1 (latest)

languid orioleBOT
fossil sentinel
#

For any changes on the connected account, account.updated event will be sent.

You may look for charges_enabled field to determine the account can create live charges and payouts_enabled field to check whether Stripe can send payouts to this account.

If there's any incomplete requirements, it will be shown under requirements field: https://stripe.com/docs/api/accounts/object#account_object-requirements

candid pier
#

is there a way that the stripe connect user will be able to fill out those fields after they leave the onboarding flow?

fossil sentinel
#

What type of connected account are you using? Standard, Express or Custom?

candid pier
#

express

fossil sentinel
candid pier
#

okay thanks, adding this endpoint now.
btw i selected connected accounts here

#

so in this case do i also select account.external_account.updated? or no

fossil sentinel
#

External account is meant for payout purpose. For checking connect account status, account.external_account.updated is not required

candid pier
#

okay dope. one other question. are there fields i need to expand after grabbing the account?

#

this is how i'm grabbing the account, let me know if this is wrong

fossil sentinel
#

This looks right to me

#

The fields I mentioned above are included in account.updated event by default. No additional account retrieval with expansion is required

candid pier
#

ok so for example this would be a fine check everytime the events come in right

#

for the else statement theres no additional need to prompt them to fill out info again I assume, or is it good practice to just redirect them again to the onboarding URL?

fossil sentinel
candid pier
#

got it so send them to my previous endpoint for return_url

#

are the requirements that are in the account field the bare minimum to make charges_enabled and payouts_enabled?

#

basically im wondering if i should have like

verify}
if requirements {
fill out requirements
} 
// you only end up in this place for an odd reason
return unknown error ```
#

or its just fine for one if-else like

verify}
else {
// requirements are non-empty
fill stuff out in a redirect link
}
fossil sentinel
#

Yes, requirements are the minimum for charges_enabled and payout_enabled

#

I'd recommend checking requirements field as platform can pause payout in dashboard and might not have anything to do with requirements

candid pier
#

okay that makes sense

#

in the handle users that have not completed onboarding

#

how do i retrieve where they lef toff?

fossil sentinel
#

Account link will pick up where the user left off

candid pier
#

like I do a new link again?

#

result, err := accountlink.New(linkParams)

fossil sentinel