#antonio-giano_unexpected

1 messages ยท Page 1 of 1 (latest)

oak irisBOT
tame oliveBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

oak irisBOT
#

๐Ÿ‘‹ 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/1239691092895600690

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

dense wind
#

The code is as follows:
``
async createAccount(req: Request, account: ICreateAccount) {
try {
if (account.id == null) {
var { id } = await this.stripe.accounts.create({
controller: {
stripe_dashboard: { type: "express" },
fees: { payer: "application" },
losses: { payments: "application" }
},
capabilities: {
transfers: { requested: true },
},
country: account.country,
business_type: "individual",
email: account.email,
})
}
else
id = account.id

        const accountLink = await this.stripe.accountLinks.create({
            account: id,
            return_url: `${req.headers.origin}/login`,
            refresh_url: `${req.headers.origin}/create-account-professional?accountId=${id}`,
            type: "account_onboarding",
        });

        return accountLink.url

    } catch (error) {
        console.error(
            "An error occurred when calling the Stripe API to create an account",
            error
        );
    }
}

``

ornate peak
#

Hello ๐Ÿ‘‹

Could you share the account ID for this testy account?

dense wind
#

Yes. Here you are: acct_1PG6AqQhDbfgNey7

ornate peak
#

Thanks, taking a look now

#

But I don't see any request that sends any data for account.email or account.name

dense wind
#

Sorry, one moment

#

Okay, for the fields account.email is my problems. However, for the fields account.name, shouldn't it be filled in by onboarding, when I enter my first and last name?

ornate peak
#

No

#

That becomes part of a separate record that is related to the account

dense wind
#

Got it. How can i retrieve these informations?

#

By the way, the strange thing is that the first and last name are not displayed on the Connect dashboard.

#

We have an account id, in this case

ornate peak
#

Unfortunately I cannot offer insight into the Dashboard. Let me dig around for where the First & Last names get saved

dense wind
#

Okay

ornate peak
#

Hmmmm... I don't think we return the contents of the individual property for Express accounts. Let me check

#

Okay I was wrong, we do populate the individual property on the Account with those details, when the business type is set to individual

dense wind
#

I read this guide. However, although i put the required fields, i can't see the individual fields. I can ony see the field email, compiled by the code.

#

The fields are as follows:

ornate peak
#

When you say "you can't see the individual fields" what is it you are looking at?

dense wind
#

I mean the fields as follows: individual.email, individual.first_name, individual.last_name, etc.

ornate peak
#

How are you getting the account object?

#

Is this a retrieve call? The result from the creation request?

dense wind
#

From API on Stripe CLI

#

with the following comand: stripe accounts lists.

ornate peak
#

Could you try retrieving a specific account using one of our server-side SDKs?

#

You created the account using our NodeJS SDK. Can you retrieve it with that SDK and log the result?

dense wind
#

Okay, one moment, please

ornate peak
#

Sorry I cannot read a file that large.

#

Can you summarize?

dense wind
#

In summary, we do not have the subfields of the individual field.

ornate peak
#

What is the request that is being made by Postman?

dense wind
#

I simply realised an endpoint on the server, exploiting the function: stripe.accounts.retrieve (<accountId>). So, i pass, in the request, as param the accound ID

ornate peak
#

Your Postman request is hitting your own server?

dense wind
#

Yes

ornate peak
#

What request to the Stripe API is being made?

dense wind
#

Below is my code for the retrieving the account information

async getAccount(accountId: string) { try { return await this.stripe.accounts.retrieve(accountId) } catch (error) { console.error( "An error occurred when calling the Stripe API to retrieve an account", error ); } }

oak irisBOT
dense wind
#

Okay

#

I think I understand.

#

https://docs.stripe.com/api/persons

A platform cannot access a person for an account where account.controller.requirement_collection is stripe, which includes Standard and Express accounts, after creating an Account Link or Account Session to start Connect onboarding.

That should be the main reason why i don't see the information about an account

ornate peak
#

Right! Yes. sorry for going down the individual rabbit hole

dense wind
#

Don't you worry ๐Ÿ˜‚ . It's quite a hell of an information stripe

#

In any case, thank you