#scene_connect-account-links
1 messages ยท Page 1 of 1 (latest)
๐ 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/1221862197840318605
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
This is the object returned successfully after using the stripe.accounts.create method
Hi ๐
Can you please share the request ID for the request that fails?
This is my code, keep in mind this is NodeJS but I'm using a framework called Velo
Stripe is integrated with npm
Screenshots of your code are not very helpful to me I'm sorry to say
Can you please share the request ID for the request that fails?
sure
It looks like you are still using the same API to create both the Account and the AccountLink
That won't work. To create the Account Link you need to use
const accountLink = await stripe.accountLinks.create
It looks to me like you are still using
const account = await stripe.accounts.create({
I'm using stripe.accountLinks.create on the second step
oh
my bad
let me try again I see what you mean now
my colleague wrote that line of code last Friday, I guess she made a typo and used again accounts.create instead of accountLinks
Okay, give that a try and see if it works
I'm checking I think there is now a new error message different than before
Can you provide the exact error message here?
yes give me a second I saw now this code I believe is just junior errors
ok it was bunch of typos but now its fine, now this is the error:
You cannot create express type Account Links for this account. Valid types for this account are ["account_onboarding"].
Can you share the request ID that generates this error?
yes, do you mean this id: acct_1OyGodH8rWSm0X9i
ok so you mean inside my Stripe account?
in the dev panel?
req_rexJepU5BXgvgJ
I found it, in the dev panel
for this request:
req_3zOw46Q41QipVt
Sorry but the screenshots don't help here
Okay you are passing incorrect parameters to the Account Links API
Like in this request: https://dashboard.stripe.com/test/logs/req_3zOw46Q41QipVt
Please review the parameters here: https://docs.stripe.com/api/account_links/create
{
"account": "acct_1OyGoFQbts19JP7N",
"return_url": "https://hendy.no/pit",
"type": "express",
"refresh_url": "https://hendy.no/pit"
}
ok so what could be wrong only the id?
and the id, is the id generated by stripe.accounts.create
is from the returned object
{...}jsonTableCopy JSON
id: "acct_1OyGwEHHNGx8Xbko"
object: "account"
business_profile: {...}
business_type: null
capabilities: {...}
charges_enabled: false
country: "US"
created: 1711386239
default_currency: "usd"
details_submitted: false
email: null
external_accounts: {...}
future_requirements: {...}
login_links: {...}
metadata: {...}
payouts_enabled: false
requirements: {...}
settings: {...}
tos_acceptance: {...}
type: "express"
this is the returned object
from stripe.accounts.create
oh ok so the type must be: account_onboarding
Yes
its working now, it was just bunch of typos
thanks a lot for helping me
is it possible to style this screen: https://connect.stripe.com/setup/e/acct_1OyGzYQn2jlY55qB/ZoZ8X8x78LPW ?
for the application to match a bit more the design etc>
?
If you mean the hosted onboarding screen. You can add your account's colors and logo in your Stripe Settings page but that is the only styling you can apply
yes that's what I mean, thanks
from this point the communication back from stripe to the web application is by webhook right?
Yes.
Ok perfect, thanks a lot for the help I really appreciate it. If we have other questions I'll let you know
have a nice day
Happy to help ๐
Have a great day ๐