#atob-yash_atob-connect-api-onboarding

1 messages ยท Page 1 of 1 (latest)

fickle rainBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1266085068766576804

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

charred locust
#

Hi ๐Ÿ‘‹

There isn't a great property for this via the API but I think you can check the charges_enabled and payouts_enabled properties. If they are true then the account is considered verified.

https://docs.stripe.com/api/accounts/object

foggy pike
#

Hey! To add more colour to our usecase, we whitelabel the onboarding experience at our end and when Stripe is unhappy with the verification, we ask users to either update information / submit an ID document (eg: invalid_street_address code). It looks like Stripe allows one doc upload, but after the document has been uploaded once, and verified, Stripe doesn't allow a second document to be uploaded

#

So in order to run the logic at our end "should we ask our user to upload a new document" can be checked by charges_enabled and payouts_enabled? Should this be an AND or an OR between the two properties?

charred locust
#

I would use an AND operator. Also, you will want to check the requirements hash to determine exactly what required verifications are still oustanding.

foggy pike
#

Yes, but in the case where requirements has person_xyz.address.line1 but the charges_enabled and payouts_enabled are both true, Stripe would reject a document, correct?

charred locust
#

Ah sorry I was thinking about other verifications. You need to check wether the document is verified or not. Not the account.

foggy pike
#

How would we do that?

foggy pike
#

How do I get the vr_ id for a document uploaded to a person / account object?

charred locust
#

You are creating Verification Sessions when verifying the person, correct?

foggy pike
#

No

charred locust
#

Sorry, which flow are you using here?

foggy pike
#

We use Stripe::File.create and then call Stripe::Account.update_person( account_id, person_id, { verification: { document: { front: file_id, back: file_id_two, }.compact, }, }, {api_key: api_key} )

charred locust
#

Okay, sorry there are many ways to go about this and I suspect I was thinking of a different approach

foggy pike
#

And then look at verification.status?

#

Is there a similar property on the account?

charred locust
#

Yes but there are many other details in that hash that could be useful to you so I would review the entire thing and see how you can plug that into your document collection flow.

foggy pike
#

Account.individual.verification is the same as Person.verification.status?

charred locust
#

No, did you look at the link? Each verification is a hash similar to the Person.verification

#

But they aren't necessarily identical since a Person can represent something other than the Individual

#

This gets kinda in the weeds when we talk in the abstract.

#

I recommend you review both the Person and Account.individual verification hashes in your flow. You can see if the properties of each update together and which object best represents what you want for your onboarding process.

foggy pike
#

Okay, will do, thank yoU!

charred locust
#

Sure thing! It's why we're here. ๐Ÿ™‚

#

Once you test some stuff out, if you have more questions, you are welcome to come back and ask again. It'll help if you can describe your flow and have example request IDs.