#msomji_charge-captured-refunds

1 messages ยท Page 1 of 1 (latest)

teal sleetBOT
#

๐Ÿ‘‹ 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.

hasty vault
#

for what its worth, the cahrge that failed to be refunded was part of a hold

hollow moon
hasty vault
#

my bad, provided the wrong request id earlier. This is it req_T14EEFxLaXu6qX

hollow moon
#

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

hasty vault
#

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?

hollow moon
#

No, if the amount captured is positive the Charge will be captured.