#sainita_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/1278790736439152711
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi, are you able to share more context here? I'm unsure if you're seeing an error here or if you're just asking in general.
Overall, when you create an account, you get both live and test API keys, https://docs.stripe.com/keys. On your Dashboard, you can toggle test/ live functionalities. So in that sense, you get both. However, I think there is more to the question.
We have multiple merchants on our site who are already connected to stripe but some of our merchant's account is in test mode and we are using live key. So there is an error in calling payment intent api. We need a way to get that error before calling intent API to let them know they need to be in live mode to complete any transaction. We are getting this error message while calling payment intent api "error": {
"message": "The account acct_1Po0LUQWsPHcNxhT was a test account created with a testmode key, and therefore can only be used with testmode keys."
},
Ohh, I see. You are talking about Connected Accounts. When you create a Connected Account using your Test API key, we would create a test mode account. You can either store this information in your Database when you create the account and note which accounts were created using the Test API key on your end.
Ok. But some of the accounts are created externally. They just manually add their connected account id details in our site to use our system. In such scenario, is there any way to find out the mode?
Are you referring to OAuth, https://docs.stripe.com/connect/oauth-reference? Or, what does ' accounts are created externally.' mean here?
Externally means they are connected through our stripe platform, not using any API. They add that account id on our site later. So, we don't have any idea if that's a live account or test until they provide that details.