#ed_api

1 messages ¡ Page 1 of 1 (latest)

molten coyoteBOT
#

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

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

silent zenith
#

To hack around this, I have to refund once and then refund again, which is so silly....

#

In fact, that seems like another error. So there are two issues I'm running into:

  1. How can I recreate "the recipient does not have sufficient funds in their stripe balance" in a test environment?
  2. why would stripe.Refund.create work in a test environment even if the payment is already fully refunded?
potent citrus
#

Hi there, let me take a look.

#

In the request you shared, you attempted a partial refund and with reverse_transfer: "True" at approximately 06:22:40 UTC however at 06:22:27 UTC the transfer was reversed when you made the Refund request via the Stripe Dashboard. Which is why the error is being returned.

silent zenith
#

Yeah that is the hack that we found around it. The first partial refund would have failed in production with "the recipient does not have sufficient funds in their stripe balance" because we paid out the connected account fully already.

#

It seems no matter how negative the connected account gets, I still can't reproduce the error with reverse_transfer=True "the recipient does not have sufficient funds in their stripe balance"

#

That is the difficult part because I can't figure out how to test this scenario

potent citrus
#

Gotcha, give me a sec

potent citrus
#

Can you share a production Request ID where the error was returned?

silent zenith
#

Like in production?

molten coyoteBOT
potent citrus
silent zenith
#

req_rlME2I4snlunk5

potent citrus
jovial gale
#

Hello
Taking over and catching up