#sainita_code

1 messages ¡ Page 1 of 1 (latest)

oak atlasBOT
#

👋 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/1279001655903387769

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

lone jetty
#

Hi, let me help you with this.

oak atlasBOT
lone jetty
#

It's a good question. I think if you created an account in Test mode, you won't be able to access it with your Live keys and vice versa.

drowsy yarrow
#

Yes.

#

That is the issue.. Some of our merchant added their stripe connected account id which is created with test mode keys in our site. Now, we have live key enabled. So, payments are not working.

#

That's why we need a way to find out from the account id if it had been created through test key or live key. So that we can show a error message in such scenario

quartz shoal
#

Hey! Taking over for my colleague. Let me catch up.

quartz shoal
drowsy yarrow
#

Not now.. But we are getting this error message in such scenario

#

"error": {
"message": "The account acct_1Po0LUQWsPHcNxhT was a test account created with a testmode key, and therefore can only be used with testmode keys."
},

quartz shoal
#

Great, this is an error message already that can be displayed to the merchant in their Dashboard

oak atlasBOT
quartz shoal
#

Actually, you can check in advance if a Connect Account can accept charge or not by retrieving it and check it's capability charges_enabled before creating a charge. So that you can print an error message before accepting a Payment.

drowsy yarrow
#

Will it return the mentioned error in this above scenario?

vale bluff
#

no,you'd be calling the Account Retrieve endpoint, that returns the JSON of an account object, and looking at the value of the charges_enabled key.