#giorgi-tediashvili_unexpected
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/1237526517622247466
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi, sure.
sub_1PDvznFtrjn00XiepahitfeV
Could you try advancing your test clock like an hour or some other short time?
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
Is there a way to make it automatic? once payment method is linked to try to charge it and make it active
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
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); }