#pinho
1 messages · Page 1 of 1 (latest)
Hi there
Usually it is pretty quick
But mostly just depends
I don't have a firm number to provide
It is dependent on checking with third-parties so we can't state a specific amount of time
I'm asking this, because I'm making the workflow:
User is alerted to provide info --> user access's the Onboarding link & provides info --> redirects to "return_url" --> I should say something like "Thanks for providing the info, however....you must wait....etc" right?
Hello! You can fetch the Account from the API to check the status of the verification and then display an appropriate message.
I prefer the webhook. Do you happen to know if the webhook of 'account.update' is triggered right after the OnBoarding is successfully completed?
Also, I'm only checking if the parameter currently_due in the object requirements is filled with data. I'm not checking the eventually_due since I believe it somehow will transfer to currently_due in the future?
I would not recommend waiting for receipt of a webhook in order to display a message on the page after the onboarding redirect, you should make an explicit call to get the state of the Account at that time.
As far as what you look for on the Account object, what do you really want to know about the Account? It seems like you want to know if it can perform certain operations at that time or not?
I'm not waiting for the receipt of the webhook to display a message on the page. But I have three states related with the authenticity of the account:
- Incompleted
- Checking provided data <-- after the user submitted in the OnBoarding
- Completed
Once the user is redirected to my page, I'll change the status to "Checking provided data" and once the Stripe sends me a notification through webhook, I'll change it to "Completed" (if that's the case).
About the second issue, yes, exactly. I need to know when am I able to transfer funds from one account to another and, ultimately, transfer funds from the account to the bank of the account (Payouts).
Gotcha. You should look at capabilities.transfers on the Account object in that case: https://stripe.com/docs/api/accounts/object#account_object-capabilities-transfers
I think that by checking if requirements[currently_due] is empty, it means everything is OK (unless it's past_due, of course).
Checking requirements won't tell you what you want to know.
There can be requirements that are currently due but transfers could still be active in some scenarios, I believe.
Yep, if you're interested in that.