#antonio-giano_unexpected
1 messages ยท Page 1 of 1 (latest)
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.
- antonio-giano_unexpected, 3 days ago, 36 messages
- antonio-giano_best-practices, 5 days ago, 9 messages
๐ 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.
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
);
}
}
``
Hello ๐
Could you share the account ID for this testy account?
Yes. Here you are: acct_1PG6AqQhDbfgNey7
Thanks, taking a look now
Okay so I see the request where you created the account here: https://dashboard.stripe.com/test/logs/req_bGGxJotYnClqwG
Business type is individual
But I don't see any request that sends any data for account.email or account.name
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?
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
Unfortunately I cannot offer insight into the Dashboard. Let me dig around for where the First & Last names get saved
Okay
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
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:
When you say "you can't see the individual fields" what is it you are looking at?
I mean the fields as follows: individual.email, individual.first_name, individual.last_name, etc.
How are you getting the account object?
Is this a retrieve call? The result from the creation request?
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?
In summary, we do not have the subfields of the individual field.
What is the request that is being made by Postman?
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
For example: http://localhost:3000/account/acct_1PG6iaH1hb5427qc
Your Postman request is hitting your own server?
Yes
What request to the Stripe API is being made?
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 ); } }
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
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Right! Yes. sorry for going down the individual rabbit hole