#WillB-pending items

1 messages ยท Page 1 of 1 (latest)

cold merlin
#

๐Ÿ‘‹ happy to help

hybrid tangle
#

Hi, are you able to provide any info on this?

cold merlin
#

I will answer you shortly

hybrid tangle
#

Thank you

prime goblet
#

Hey there, sorry for the delay

#

Yep, the invoice will reflect the pending updates

hybrid tangle
#

Does the new invoice include the unpaid amount for the pending updates, or just the amount for the next subscription period?

dire osprey
#

the former I'd assume

deft kernel
#

Hi @hybrid tangle let's chat in here

hybrid tangle
#

Thanks for that. In the case that the pending updates are included in the new subscription invoice, what happens to the old invoice?

deft kernel
#

Are you referring to the previously paid invoice?

hybrid tangle
#

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

hybrid tangle
#

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?

sharp pollen
#

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

hybrid tangle
#

Oh that's great, thank you. I'll be interested to see your outcome also ๐Ÿ™‚

sharp pollen
#

The changes that you're making, are they ones that would result in an invoice being immediately generated when the update request is made?

hybrid tangle
#

That's correct

sharp pollen
#

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.

hybrid tangle
#

Perfect, thank you very much!

sharp pollen
#

Any time!