#fengyu-chen_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/1265626128031416361
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Can you share the code you use to initialise Stripe.js in the front-end? Likelihood is that you're missing the stripeAccount param there: https://docs.stripe.com/connect/authentication#adding-the-connected-account-id-to-a-client-side-application
Hi ynnoj, I add the stripAccount in my code, but I still have this error, do I still miss other configuration?
The client_secret provided does not match any associated PaymentIntent on this account. Ensure the publishable key used belongs to the same account that created the PaymentIntent.
const promise = loadStripe(process.env.NEXT_PUBLIC_STRIPE_KEY!, {
locale: locale as CheckoutLocale,
stripeAccount: 'acct_abc',
})
You're going to need to share the pi_xxx ID or something
Also, which pk_xxx are you passing to loadStripe?
Ah sorry, the complied was failed, it's acutually working !
Perfect!
Thank you so much