#mike-s_api

1 messages ¡ Page 1 of 1 (latest)

warped pantherBOT
#

👋 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.

flint swallow
#

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

slender blade
#

thanks for coming back to me. Its just one account and one publishable key

flint swallow
#

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

slender blade
#

this is the card error

flint swallow
#

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

slender blade
#

thanks - v much appreciated. Just looking now

#

here is the expanded 400

flint swallow
#

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

slender blade
#

ok thanks. this is the first time working with Stripe