#propstest_code
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/1332384372656967751
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Basically my question is if you think there is some better way to achieve this. And if this check I do before voiding and canceling is sufficient.
Your code is correct
It's expected that open invoices still can be paid via retries, etc
Even if sub is cancelled
So you need to void them
If you don't want that behavior
indeed. alright, thanks duchess.
should I maybe check for some other stuff, just to make sure?
for example, should I retrieve the invoice to make sure it is in retry state?
Just worried that I will void a paid invoice or something
I guess I will add it.. 1 more API call can't hurt
Oh you can't void a paid invoice
true..
But yeah you should only make that api call if invoice is unpaid state
No problem