#msomji_charge-captured-refunds
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/1354856335232995349
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
for what its worth, the cahrge that failed to be refunded was part of a hold
Hi ๐
Can you share an API request ID for this, where the refund failed? It will start with req_
Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
my bad, provided the wrong request id earlier. This is it req_T14EEFxLaXu6qX
Thank you.
If you are directly using the Charge object, then checking the captured property is the best approach. You would only attempt a refund if captured: true
perfect, thanks!
We initially were looking at amount_captured to make sure its grater than 0
does this mean that captured can be false but amount_capturedcan still be greater than 0?
No, if the amount captured is positive the Charge will be captured.