#scene_connect-account-links

1 messages ยท Page 1 of 1 (latest)

gusty pagodaBOT
#

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

digital ginkgoBOT
waxen cairn
#

This is the object returned successfully after using the stripe.accounts.create method

buoyant coyote
#

Hi ๐Ÿ‘‹

Can you please share the request ID for the request that fails?

waxen cairn
#

This is my code, keep in mind this is NodeJS but I'm using a framework called Velo

#

Stripe is integrated with npm

buoyant coyote
#

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?

waxen cairn
#

sure

buoyant coyote
#

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({

waxen cairn
#

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

buoyant coyote
#

Okay, give that a try and see if it works

waxen cairn
#

I'm checking I think there is now a new error message different than before

buoyant coyote
#

Can you provide the exact error message here?

waxen cairn
#

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"].

buoyant coyote
#

Can you share the request ID that generates this error?

waxen cairn
#

yes, do you mean this id: acct_1OyGodH8rWSm0X9i

buoyant coyote
#

No

#

I meant the request ID. It will start with req_

waxen cairn
#

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

buoyant coyote
#

Sorry but the screenshots don't help here

#

Okay you are passing incorrect parameters to the Account Links API

waxen cairn
#

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

buoyant coyote
#

Please read the document I shared

#

You arre passing invalid values

waxen cairn
#

oh ok so the type must be: account_onboarding

buoyant coyote
#

Yes

waxen cairn
#

its working now, it was just bunch of typos

#

thanks a lot for helping me

#

for the application to match a bit more the design etc>

#

?

buoyant coyote
#

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

waxen cairn
#

yes that's what I mean, thanks

#

from this point the communication back from stripe to the web application is by webhook right?

buoyant coyote
#

Yes.

waxen cairn
#

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

buoyant coyote
#

Happy to help ๐Ÿ™‚

Have a great day ๐Ÿ‘‹

waxen cairn
#

๐Ÿ™‚