#sinduri_oauth-granterror
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/1225034853205151784
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
sinduri_oauth-granterror
Hello! Let me have a look!
@thorny heath okay I can't find that failed request id anywhere. Can I ask you to provide a bit more context around your ask, what your code is doing, what the problem is, and why you are mentioning Live and Test keys?
I am not mentioning live and test keys, that is the error I received from Stripe. I'm calling the API https://api.stripe.com/v1/oauth/token
ah gotcha so Passed in testmode API key but authorization code only supports returning live keys is part of the error message we return?
Yes
Why are you passing a Test mode API key if you got a Live mode ac_1234?
Followed this doc - https://docs.stripe.com/stripe-apps/api-authentication/oauth#obtain-access-token
sure but that example a Live API key right?
When you try to exchange you have to make sure that you use the right "mode" so the ac_123 has to be in the same mode as the API key you use based on whether you are connecting in Live or Test mode.
You seem to be using the wrong mode
My both accounts are on test mode
That's not what it says right now. It says you passed a Test API key but you got an ac_1234 that only works for Live mode