#MarcusStripe
1 messages · Page 1 of 1 (latest)
hi! our documentation on this is https://stripe.com/docs/connect/identity-verification-api#determining-if-identity-or-business-verification-is-needed
- you should get a webhook if the status changes(from unverified to verified)
- you'd create a new AccountLink and direct the user to it where they can enter/adjust any required information
- yes it can always move back to disabled. You need to listen to
account.updatedevents and redirect the user back to AccountLinks when needed, the docs above describe the flow
- ) status changes(from unverified to verified) - which event to listen to for this? account.updated too?
- new, entirely new - or an update link - I see the api for that. Because, I'd assume, with an entire new link.. how would stripe know this is a related request???
- yes
- entirely new. We know it's related because you have to pass the account ID
acct_xxxof the connected account to create the link.
Hey, taking over here. Let me know if there's any follow-up Qs I can answer!
Thanks. Still processing the info
create account link to update missing data -
the fist time I create a link I use:
account_onboarding
Which status to use for later?
account_onboarding, account_update, custom_account_update, custom_account_verification?
--
he Account object’s charges_enabled and payouts_enabled
I need the connect api to SEND money from m stripe account to my customers added through the connect api...
That is payouts, right?
Sorry, I'm not understanding you, could you please give more details ? what do you mean by using account_onboarding when you create a link?
Yes, it is, if you mean your Connected Accounts by your customer.
https://stripe.com/docs/connect/manual-payouts
and so I can ignore if charges are enabled, or not, also right?
Charges would be retrieving money from the same connected accounts, I assume
Well I was told, I think by Karllekko, to create a new link with the account id if missing data must be added. The initial link I created I did with type: account_onboarding
Now the questiom is, should I continue creating new links as account_onboarding? / When to use the other types?
( account_update, custom_account_update, custom_account_verification)
he Account object’s charges_enabled and payouts_enabled indicate whether the account can create charges and accept payouts.
now my question:
I need to SEND money to the connect accounts.
SO I assume - question - do I only need to check "payouts_enabled" or is "charges_enabled" also of some relevance to me?
Let me confirm
Also, depends what you mean by sending money to the accounts. Purely within Stripe? Or to their external account?
- Second question:
If an account is not ready... it seems the customer has to submit more data. And I was told to create a new account link for that, with the account id of the customer so they can continue in the process.
For the link - a) can I simply re-use the initial link?
or b) create an entire new link... in case of b), which I assume - which link type to use?
account_onboarding, account_update, custom_account_update, custom_account_verification?
can I simply re-use the initial link?
No, they're enabled for one-time usage and expire if unused after a short period of time. You should implement arefresh_urlwhich will create a new Account Link in those instances.
If the account still has onboarding/verification requirements, you'd use account_onboarding
Ok so you can create a Transfer (https://stripe.com/docs/api/transfers) to a connected account with both charges and payouts disabled
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
refresh_url - is that an api, or you mean I should implement such function on my end?
But obviously those funds can't be paid out (to an external bank) until verified
If the account still has onboarding/verification requirements, you'd use account_onboarding
how do I know?
That would be a URL in your application that would create a new Account Link using same parameters:
The URL you specify should attempt to generate a new account link with the same parameters used to create the original account link, then redirect the user to the new account link’s URL so they can continue with Connect Onboarding
funds - I will now activate the account on my end until stripe tells me all is good.
not activate
How do you know what?
how do I know - if the account still has onboarding/verification requirements,****
Tells you here: https://stripe.com/docs/connect/identity-verification-api#determining-if-identity-or-business-verification-is-needed
Mostly the requirements hash
In the stripe dashboard I see two status - enabled and complete. How do I get these from the api or the webhook?
You can't. That label is computed from a bunch of fields on the Account object
There's no 'status' field for an Account
can you be more specific as " bunch of fields on the Account object".. because after reading the above document 2-3 times... I still dont know exactly.
Further.. what mostly puzzles me atm - is it enough to - LISTEN to the account_updated webhook for this info -
or should I actively retrieve the account to know its status?
I see:
stripeAccount.getRequirements().getCurrentlyDue().isEmpty();
stripeAccount.getRequirements().getEventuallyDue().isEmpty();
stripeAccount.getRequirements().getPastDue().isEmpty();
would probably needed to know if all is fine.. but it seems for my own experiments.. that I did not get an account_updated event when I had direclty created a fully verified test account
so it - SEEMS - i have to retrieve the account synchronously on my own?
can you be more specific as " bunch of fields on the Account object".. because after reading the above document 2-3 times... I still dont know exactly.
I can't really explain it any better than the link I've shared does
would probably needed to know if all is fine.. but it seems for my own experiments.. that I did not get an account_updated event when I had direclty created a fully verified test account
You'll get that event whenever there's a change to an Account object
and a change.. is that from INITIAL state to VERIFIED also?
then it is strange that I saw no event 😦
It depends: you likely got various account.updated events during the hosted onboarding
I'm not sure what the underlying ask is here, but I can help further if you can clarify the actual issue
👋 taking over for my colleague. Let me know if there's any follow-up Qs I can answer!
ok sure
ok. So I can confirm, there is no event "account_updated" sent to me for a verified test account just created!
acct_1LmzOHPH341ftKKI
what is the webhook endpoint id you're listening to?
apparently you don't have a webhook endpoint to listen to Connect Account events
that's why you're not getting the event
oh!
is that a special endpoint?
I have just one endpoint, and it is configured to listen to:
account.updated
credit_note.created
customer.subscription.deleted
customer.subscription.trial_will_end
invoice.paid
invoice.payment_failed
payment_method.automatically_updated
this is an endpoint that only listens to your own events
did you create the webhook endpoint through the dashboard or programmatically via the API?
if via the API this parameter https://stripe.com/docs/api/webhook_endpoints/create#create_webhook_endpoint-connect should be set to true
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I added my endpoint to the dashboard
if you're using the dashboard you'd have to choose the Events on Connected Accounts as shown in this screenshot
let me check
and... if I have not activated that.. why can I still listen to "account_update" without it?
does it exist for the other events, too???
I dont see such a page
API version
2020-08-27
maybe thats why??
yes account.updated would be fired on the current webhook endpoint whenever you have made any changes to your own account
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
ah! my own account
well thats pretty much useless, I guess ? 🙂
Type - Account / Connect
so it seems, from stripe, those endpoints are generallys separated
yes they are
I have now set up an "Connect" endpoint.. and used the same url of my endpoint
this is why you need to create a new one
I wouldn't recommend this
but .. that could be dangerous.. if you say that if my own account is updated, it would mean to call this as well?
what are the general disadvantages / dangers / risks.. to better understand?
maybe to be able to turn them off separatelt better?
in case of fraud or whatever
you should always be able to separate the handling of Connect events and your own account events
ok so for testing if generally it works now, I will keep it connected, then implement a separate endpoint.. it feels correct / better, yes
we_1Lmzg4AfQ68zM8an1tbrfIwO
so this is a CONNECT test endpoint now
but still, it did not receive - anything
Listening for
account.updated
if you're using Stripe CLI you can replay an event
using this event id evt_1LmzPnPH341ftKKIQITncN7M
What do you mean
Hello 👋
Taking over as tarzan needs to step away
I believe my colleague was suggesting resending an existing event to your endpoint to see if it is configured correctly to listen for account.updated
well I have created a brand new event
I mean a brand new connected account
I created an extra connect endpoint
but still.. the event is not processed and not send... looking a tthe dashboard
so resending an event that was not sent.. wont help I guess!
did you create the account in livemode or testmode?
Seems like an event was generated but it failed the delivery
https://dashboard.stripe.com/test/events/evt_1LmztVPOc89VN7bNR5ZHICWK
I'd recommend checking your server logs to see if something broke
that it failed on my end could be due to the different webhook key, I noticed
but.. why do I not at least see a failed event in the dashboard?
No such notification: 'evt_1LmztVPOc89VN7bNR5ZHICWK'
That webhook event is generated at the account level, so your express account owns the object in this case.
I dont understand
Let me maybe re-phrase. I have created a new test webhook endpoint for the CONNECT api.
I have configured it so that it listens to account_updated evetns from the connect api
I have created an account with the connect api
I expect that a account_updated event is send to this new webhook, and then shown in my test dashboard webhook UI as either FAILED or SUCCESS
Can you check if they show here?
https://dashboard.stripe.com/test/webhooks/we_1Lmzg4AfQ68zM8an1tbrfIwO
Were you checking under the events tab instead?
no
so you are saying you did not change anything?
uhm.
anyway.. I will now deploy a new endpoint with the new secret.. then they should be accepted also
Yeah I didn't change anything, you were likely on the wrong page.
NP! 🙂 Good luck
Have a good one