#clydstrife_api

1 messages ยท Page 1 of 1 (latest)

west palmBOT
#

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

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

cyan rose
#

๐Ÿ‘‹ happy to help

#

if you create the customer on the connected account

#

you need to create the SetupIntent also on the connected account

ripe steeple
#

Oh so in the stripe initilization, I also pass the account_id like this? var stripe = Stripe('pk_test_TYooMQauvdEDq54NiTphI7jx', 'acct_abcdefghijk');

#

or should I attach it like an array instead?

cyan rose
#

it's Stripe("pk_test_xxx", { stripeAccount: "acct_xxx" })

ripe steeple
#

oh since it's an option to be attached got it let me test it out real quick

#

It worked, thank you so much! Didn't know you had to attach the stripeAccount option to it. Also quick additional question is it ok to have the account_id exposed in the frontend? I know it's ok for the public key to be exposed.

cyan rose
#

yes account IDs are not sensitive

ripe steeple
#

Got it, thanks a bunch mate!