#mike-j_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/1237351276518309980
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- mike-j_webhooks, 4 days ago, 11 messages
Can you share the pi_xxx ID?
Generally this is on eof two things:
- In Connect scenarios you're missing the
stripeAccountheader in Stripe.js - API key account mismatch
So yeah, pi_3PDkhYQtREZRfjbv0JCbKniy is a direct charge on acct_1PBv5DQtREZRfjbv using the platform API keys. But in Stripe.js you're using the keys from the account directly. You need to do this instead: https://docs.stripe.com/connect/authentication#adding-the-connected-account-id-to-a-client-side-application
Ok, I'll double check those things. I'm a little confused that the process works in certain scenarios and as far as I'm aware, the api leys shouldn't be changing between them, but stranger things have happened. Thanks
From the initial req_xxx you shared you're initialising Stripe.js with the pk_xxx of the connected account. You need to use the publishable key of the platform
And then pass stripeAccount: 'acct_connectedaccount'
Ahh, I think I see where it's happening. Thanks!