#ed_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/1414747652108718263
๐ 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.
- ed_api, 3 hours ago, 18 messages
Can you please reopen https://discord.com/channels/841573134531821608/1414669889540460707 ?
I am trying to respond to @keen onyx
He asked that I reroduce it, but it takes a while to reproduce, and now I can't respond in the thread anymore?
We don't reopen threads but I'm happy to help you here with a newer question
But there is so much contex there
OK I'll just copy and paste
So there are two issues I'm running into:
How can I recreate "the recipient does not have sufficient funds in their stripe balance" in a test environment?
why would stripe.Refund.create work in a test environment even if the payment is already fully refunded?
Here is how I tried reproducing #1
Payment 1: req_XNPvuW11anJDR0
Payment 2: req_tzhdhVvc648J5W
Then, I pulled all the money away out of the connected account: acct_1S5DsFH15ESseO9Q
Now, when I process a refund: req_KgrpjB3pCoA75x, it succeeds even though reverse_transfer=True, and the account balance is 0. In production, this would return an error "the recipient does not have sufficient funds in their stripe balance"
In fact, even if the connected account's balance is negatvie by like 100,000, reverse_transfer=True still succeeds, which is not representative of what happens in real life.
Now, when I process a refund: req_KgrpjB3pCoA75x, it succeeds even though reverse_transfer=True, and the account balance is 0. In production, this would return an error "the recipient does not have sufficient funds in their stripe balance"
that shouldn't error. It kind of depends on multiple factors such as the connected account type. See https://docs.stripe.com/connect/account-balances
In production, I get errors like req_rlME2I4snlunk5, but I need to be able reproduce in sandbox to test my handling of this situation
I can't reproduce this error no matter how hard I try in sandbox. No matter how negative the account gets
looking
Some of this is impossible to reproduce in Test mode sadly. My guess is that the connected account had a negative balance too large around that time and you weren't allowed to go even more negative (even though our docs don't mention this).
I recommend reaching out to our support team directly instead at https://support.stripe.com/contact so they can confirm what caused that specific error at the time, and confirm if you can get a higher threshold for negative balances to avoid this problem that only happens in production
Yeah they confirmed that it is because the connected account went too negative.
So it's not reproducible in either sandbox or test?? But I don't want to test in prod haha
So working with them directly is the best next step. This can't be reproduced in Test mode or Sandbox.
No that is not a thing sorry. I recommend you work directly with our support team for 1:1 support on your specific ask
@fresh rock
Do you know if anyone has actually ever gotten higher threshold for negative balances?
Just wondering because (as you know) reaching out to support takes 20 min to reach someone
And they will probably transfer me to a "specialist" and I'll get an answer 24-48 hours later - the whole process is a huge hassle
I'd rather test in prod if it's not actually possible.
Not sure sorry. I know the feature exists, but as a Connect platform I think it's a pain because it's per connected account which to me makes absolutely no sense.
But working with support and being patient is the way for something this specific really
Ohh yeah per connected account is not going to work - we are seeing this issue across connected accounts.
OK I will just program around it - thanks!
The advice is really much more helpful - thank you
I wish I had a better answer. I have my own multi-months long jira to try to get an answer from a similar case and I'm still baffled ๐