#ricky-liu_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/1384710952963932171
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
My environment is a production environment and I use real cards for testing
The PI was created on Live mode acct_1QTvxiJkC66WdnFH, while your request is made on its Sandbox account acct_1RDjOwQunRvUtc11
Please check the Publishable Key you are using
The sandbox display is for testing. How can it be changed to a formal environment
The Publishable Key has been verified to be correct
I retrieved the key again but still got an error. Now I don't know where the error occurred
Do you get the same error?
It means the key you are using is still not the Live mode Publishable Key
It is written in my code that there is no problem
When I changed to the test key, the payment was normal. Now I'm seeking help. I have repeatedly confirmed that there is no problem with the real key
By changing to test key, do you mean sandbox key? And do you mean publishable key?
It works with sandbox secret key because you are using a sandbox publishable key
I think you would want to double check your js to make sure nowhere else is using a different key
This STRIPE_WEBHOOK_SECRET is tested. Does it have anything to do with this?
That’s another different key. not related here
I'll check it again
The system gives the prompt "No such payment_intent" : 'pi_3RbCRCJkC66WdnFH1ewcOO4Q'
When the intention was created successfully, it indicates that this real key is correct
The last screenshot is for calling your backend, and as long as your backend is using a Live Secret key, the PI is in Live mode
the point is the Publishable Key on your JS code, which is calling the confirm method in first screenshot
Open https://dashboard.stripe.com/test/logs/req_DzK8SlHyVIEdwu?t=1750157723 on your Dashboard , when you are choosing Sandbox
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
OK