#nathan_blkout

1 messages · Page 1 of 1 (latest)

marsh starBOT
pulsar solstice
#

Are you using Stripe hosted onboarding for onboarding the Express accounts?

#

If so, can you send me the Account ID for the account you're talking about?

crimson patio
#

Yes it's the stripe hosted onboarding
It's this one : acct_1OXt3tQ9QRFSpz4z

pulsar solstice
#

Are you looking at the Account's representative? There's a Person object nested under the Account that has the address they inputed. If they're an individual Account, then it will be here: https://stripe.com/docs/api/accounts/object#account_object-individual-address

Otherwise, you'll need to look here (e.g. for Accounts of type corporation, government_entity, etc.): https://stripe.com/docs/api/accounts/object#account_object-company-address

crimson patio
#

For the first one, i think we can manage to get the person address effectively.
But the others types, we don't see the company address key on the account object when we do a retrieve with the id, and the id i gave you was a corporation type

#

I don't know if it's a matter of steps (knowing i did all of them), or a matter of testing mode ?

pulsar solstice
#

Ah, okay. In that case you might have to get the info direct from the Person API. You can do a List All Person API call and pass in the Account ID to get the address info off the Person object: https://stripe.com/docs/api/persons/list

crimson patio
#
stripe accounts persons  acct_1OXt3tQ9QRFSpz4z   

{
  "error": {
    "code": "oauth_not_supported",
    "message": "Cette application ne dispose pas des autorisations requises pour this endpoint sur le compte 'acct_1OXt3tQ9QRFSpz4z'.",
    "message_code": "oauth_not_supported",
    "request_log_url": "https://dashboard.stripe.com/acct_1OXt3tQ9QRFSpz4z/test/logs/req_YW1tSFvSqNNbLu?t=1705100588",
    "type": "invalid_request_error"
  }
}

I got this

#

I english this means that i don't have the rights to access this endpoint

#

But i'm an admin on the main account which allow creation of connected account, i cant' get more rights

#

When you go on it, it's loading infinitly

#

No matters to know the problem by my side

pulsar solstice
#

Let me dig a bit more. Just a minute

crimson patio
#

Yes for sure

#

I tried to get a login_link :

stripe login_links create acct_1OXt3tQ9QRFSpz4z 
{
  "object": "login_link",
  "created": 1705100963,
  "url": "https://connect.stripe.com/express/acct_1OXt3tQ9QRFSpz4z/ioIC3KXykOBl"
}

On this when i click on settings, at the bottom i've got "settings of plateform", where i can see the company address

#

It's the first place where i can retrieve it, but it's a client side way with real interraction

pulsar solstice
#

Can you post the payload from your API call to retrieve the Express Account object?

crimson patio
#
stripe accounts retrieve acct_1OXt3tQ9QRFSpz4z 

From the sdk for now

#

But that's the same response from our site with the symfony stripe lib

pulsar solstice
#

Sorry, I meant the payload. So what does the that request send back to you?

crimson patio
#

This object

#

Where i can't do any other api call on object containing there (as the person for example)

pulsar solstice
#

Gotcha, yeah I didn't realize the permissions for the Person API were restricted in your case.

So I would recommend using Login Links for onboarding. When you create the Login Link, make sure to pass collect; 'eventually_due' (see here; https://stripe.com/docs/api/account_links/create#create_account_link-collect). This will ensure that Stripe asks for business address during onboarding.

Then, once the onboarding flow is complete, you can get the address they entered from the Account object under company.address: https://stripe.com/docs/api/accounts/object#account_object-company-address

crimson patio
#

Okay so if i understand well, when i currently do the onboarding with the account link for the exress, even if i'm asked to set the company address, without collect; 'eventually_due' i can't get it on the account object later ?

marsh starBOT
pulsar solstice
#

If you're asked for it, it will show up. I don't see any indication that your Express account was asked for address during onboarding though.

crimson patio
#

Okay i see even if i had to set it during onboarding currently, even if i don't asked it in the creation of the account_link.. 🥲 i'll try it tomorow, thanks for help ! Have a good night and good luck for sav !

lapis peak
#

Thanks from the team :p