#giorgi-tediashvili_unexpected

1 messages ยท Page 1 of 1 (latest)

topaz zephyrBOT
#

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

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

fickle pendant
#

Hi there!

#

Do you have a Subscription ID I can review?

kind pine
#

Hi, sure.
sub_1PDvznFtrjn00XiepahitfeV

fickle pendant
#

Could you try advancing your test clock like an hour or some other short time?

kind pine
#

Sure

#

advanced with 1 hour

fickle pendant
#

Ah, I see what's going on

#

The Subscription's status won't move to active until the latest open invoice is paid. We won't automatically attempt payment on the open invoice because that invoice is set to auto_advance: false

#

If you call /pay on the latest invoice, the subscription should update to active

kind pine
#

Is there a way to make it automatic? once payment method is linked to try to charge it and make it active

fickle pendant
#

You'll have to update the invoice's auto_advance property to true in order for us to automatically attempt payment. There's no way to automatically set the Invoice's auto_advance to true when resuming a Subscription

kind pine
#

This doesn't look like the best solution... ๐Ÿ˜ฆ

var invoiceService = new InvoiceService(); var invoiceOptions = new InvoiceListOptions { Subscription = subscriptionId, Status = "open" }; var openInvoices = await invoiceService.ListAsync(invoiceOptions); foreach (var openInvoice in openInvoices) { await invoiceService.PayAsync(openInvoice.Id); }