#_code
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/1384481367550591088
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
hello! it's possible that your test key and public key are mismatched - can you verify that you're using the test and public key from the same account? also that they're both test mode keys
ahh, i just looked at the creation request for the checkout session:
https://dashboard.stripe.com/test/logs/req_63NJRVeYyfQPc0
you're creating a direct charge on a connected account, so when you initialize stripe with your public key you need to put their account ID in too. let me find the docs that show you how to structure that
here it is:
https://docs.stripe.com/js/initializing#init_stripe_js-options-stripeAccount
you need to make sure you include that option with your initialization
yep of course!