#ricky-liu_api

1 messages · Page 1 of 1 (latest)

rugged cryptBOT
#

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

urban forge
#

My environment is a production environment and I use real cards for testing

rotund ridge
#

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

urban forge
#

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

rotund ridge
#

Do you get the same error?

#

It means the key you are using is still not the Live mode Publishable Key

urban forge
#

I'm using the real key now

#

Look it

rotund ridge
#

that’s secret key

#

I mean the PublishableKey on js

#

pk_live_xxx

urban forge
#

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

rotund ridge
#

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

urban forge
#

This STRIPE_WEBHOOK_SECRET is tested. Does it have anything to do with this?

rotund ridge
#

That’s another different key. not related here

urban forge
#

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

rotund ridge
#

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

urban forge
#

OK