#clydstrife_api
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/1295674244876992532
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
๐ happy to help
if you create the customer on the connected account
you need to create the SetupIntent also on the connected account
and use the https://docs.stripe.com/js/initializing#init_stripe_js-options-stripeAccount option on your frontend as well
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?
it's Stripe("pk_test_xxx", { stripeAccount: "acct_xxx" })
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.
yes account IDs are not sensitive
Got it, thanks a bunch mate!