#mike-s_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/1473710823133286483
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Do you have multiple accounts? This can happen if you use a publishable key on the frontend that doesn't match the account the payment intent was created on
thanks for coming back to me. Its just one account and one publishable key
Ok what's in the response body for When I pass the client secret to stripe.elements() I get a 400 http response in the browser.
You'll need to use browser's network tools
this is the card error
Can you expand the 400
To see the response body
So the other thing is you pass stripeAccount
So that means multiple accounts are at play
Likely the payment intent doesn't exist on the stripeAccount in your screenshot
Ah ok so pi_3T29MbEXGtLoZA7w0iPu3Lzx exists on acct_1Nxs4GEXGtLoZA7w
So that's why you're getting an error here
It doesn't exist on the stripeAccount you pass into initialization
You would need to see it in the network tab to see the response
But read my above messages
The issue is that pi_3T29MbEXGtLoZA7w0iPu3Lzx exists on acct_1Nxs4GEXGtLoZA7w
Not the account you initialize stripe.js with
Also that payment intent is a test payment intent
And you are using a live publishable key in your screenshot
So there's multiple things wrong here
ok thanks. this is the first time working with Stripe