#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_best-practices, 2 days ago, 9 messages
- antonio_connect-sct, 6 days ago, 12 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/1238560276278808576
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
I've written as follows on my code:
``
if (accountId == undefined) {
var { id } = await this.stripe.accounts.create({
type: "express",
capabilities: {
transfers: {
requested: true
},
card_payments: {
requested: true,
}
},
business_type: "individual",
country: undefined
})
}
else
id = accountId
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
``
I simulated the following site: https://rocketrides.io/ and it is given an possibility to choice an country and type company
In my project, this section is not displayed by switching directly to the 'View personal information' section with the country being set automatically, without the possibility of changing it.
Okay but when you are presented with the Stripe hosted onboarding, that is where you do not see the option to set a Country?
I see it in the "View personal information" section but without the possibility of chaning it. For example, i live in italy so in this case it sets Italy
Hi, stepping in and catching up.
Okay, i will await further news
Hi, it looks like you're using Connect but not seeing country or company type when you create the AccountLink. From the code you shared above, it looks like you're specifying business type as individual when you create the account, https://docs.stripe.com/api/accounts/create#create_account-business_type. This prefills the data and likely the reason for not seeing a drop down option. Can you create an account without passing this business type? Also, you seem to be passing the country parameter with an 'undefined' value. I recommend that you pass the county where you want this express account to be create in: https://docs.stripe.com/api/accounts/create#create_account-country. If you do not pass a country it will be defaulted to your Platform's country.
i will try without an business type field. One moment
Sure!
Curiously, removing that field, is displayed as follows:
without country
Removing an country field as well, is displayed the same section
yeah, the coutry should default to the country of the Platform Account.
If you click on the arrow, do you not see other options?
Isn't possible to have an possiblity to choice an country? This is important for the UI/UX in my platform.
I see as follows
As you seen that, the country field is setting automaticaly, So, i haven't got an possibility to choice that
That is expeocted. You would need to build this on your end and let them choose a country before creating the Account. Then, pass that county when you create the Account.
However, on this site, even though the country is given before the account is made, it displays the section
Maybe, does the site involve an outdated version of stripe?
I'm unsure to be honest. After testing and confirming with our API document, https://docs.stripe.com/api/accounts/create#create_account-country it either defaults to the country is none passed, 'country: default is your own country', or you need to pass one if the account is in another country.
Got it. So, in this case, i should developer an section with the option of the country and business type. Understood!
One question: how i can set the country of my platform on dashboard stripe?
When you signed up at with Stripe, https://dashboard.stripe.com/register you would have given the choice to choose the country. Once that is set up, if you want to create another Platform in another country, you can add it on your Dashboard on your existing account. Log in > on the upper left corners you can click on the Business name > Create new account.
Got it. Once that is set up, isn't possible to set up the country of the same account?
Yes, if the business details are different and if you require two accounts in the same country, you should be able to.
I mean the single account without creating an new account, sorry
Ah, no. That is not possible
Got it, thanks