#propstest_code

1 messages ¡ Page 1 of 1 (latest)

real gullBOT
#

👋 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.

olive spear
#

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.

safe field
#

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

olive spear
#

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?

safe field
#

That's up to you really

#

Depends on what behavior you want

olive spear
#

Just worried that I will void a paid invoice or something

#

I guess I will add it.. 1 more API call can't hurt

safe field
#

Oh you can't void a paid invoice

olive spear
#

true..

safe field
#

But yeah you should only make that api call if invoice is unpaid state

olive spear
#

makes sense

#

alright, that's all then! thanks for the help

safe field
#

No problem