#WillB-pending items
1 messages ยท Page 1 of 1 (latest)
Hi, are you able to provide any info on this?
I will answer you shortly
Thank you
Does the new invoice include the unpaid amount for the pending updates, or just the amount for the next subscription period?
the former I'd assume
Hi @hybrid tangle let's chat in here
Thanks for that. In the case that the pending updates are included in the new subscription invoice, what happens to the old invoice?
Are you referring to the previously paid invoice?
Well if there are pending updates then the invoice might be unpaid
So Iโm asking in the case the the previous invoice hasnโt been paid and the updates are pending
I'm thinking theoretically if the subscription was updated just before the renewal happens, but the payment fails, the updates are left pending but the new invoice is generated for the renewal.
Does the renewal invoice include the pending updates?
If so, does the renewal invoice contain the prorated price from the pending updates invoice? Or, is it just the price of those items for the next subscription period?
If the pending updates aren't included in the renewal invoice then I need to update the subscription again after the renewal invoice?
Hi there ๐ I'm jumping in, please bear with me a moment while I get caught up on the context here.
That's an interesting scenario, and I'm not certain off the top of my head how that would behave so I'm going to be running some tests. While I'm doing that, I wanted to point out that we've recently introduced a feature called test clocks, which allow you to create subscription items in an isolated space where you can control the passage of time. This allows you to test scenarios like this in minutes rather than weeks.
https://stripe.com/docs/billing/testing/test-clocks
Oh that's great, thank you. I'll be interested to see your outcome also ๐
The changes that you're making, are they ones that would result in an invoice being immediately generated when the update request is made?
That's correct
So what I'm noticing, is that when I created the pending updates near the beginning of the billing cycle, pending_updates.expires_at is set to about a week from the current date. However, when I did the same thing near the end of the billing cycle, pending_updates.expires_at was set to a value before the current period end. I'm wrapping up that scenario now, but I expect the pending changes to be dropped prior to the renewal invoice being generated.
Confirmed, the pending updates were set to expire prior to the renewal process, so the renewal invoice only contained the previous contents and did not contain the pending updates.
Perfect, thank you very much!
Any time!