#timothe_code

1 messages ยท Page 1 of 1 (latest)

thorny archBOT
#

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

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

austere spear
#

hi there!

spiral creek
#

Hi.

#

How can I advance my customer to the next billing period ? And make him pay for the next period ? ๐Ÿ™‚

austere spear
#

I just want my customer's subscription to advance to the next billing period and that he pays for the next billing period.
can you clarify exactly what you want to happen with a specific example? for example:

  1. customer subscribe to a $10 monthly subscription
  2. 15 days later I update the subscription to YYY, and I expect the customer to be charged immediately for $ZZ
thorny archBOT
spiral creek
#

customer subscribe to a $10 monthly subscription. 15 days later he consumed all the quota allowed with his plan (the quota is something about my product, not a stripe thing). The client doesn't want to upgrade to a larger subscription, he just want the same subscription but he wants it to reset now. Pay in full for the next billing period now and reset the billing anchor to now.

#

It was working with API version 2019-12-03 but doesn't seem to work with 2025-12-15.clover.

#

And it looks like Stripe behavior is different than what's in the documentation.

#

In particular this :

                stripe.Subscription.modify(user.subscription()['id'], 
                                           billing_cycle_anchor='now', 
                                           proration_behavior='none')

Doesn't generate any invoice despite the documention saying it should.

past sun
#

hi there ๐Ÿ‘‹ taking over as my colleague needs to step away - I'm just getting caught up

spiral creek
#

Ok.

#

Hi Glo.

#

I hope you can help me. ๐Ÿ™‚

#

Also in the dashboard, when I check the "Reset billing cycle" just under it's written "This will generate an invoice immediatly" and the summary says $7 bills on Feb 22 / Bills immediatly.

#

But when I click to update the subscription the customer is not billed.

#

This looks like an issue on Stripe side.

#

Are you there ?

past sun
#

I think this is related to flexible billing mode - could you share the subscription ID please?

spiral creek
#

sub_1SsNBtFVAKv4rEfinq8WaigX

#

After investigation on our side it looks like none of the proration_behavior values replicate the old behavior. This is true for both classic and flexible billing modes.

past sun
#

this is the expected behaviour for flexible mode, but classic should still follow the behaviour from the docs afaik

could you share an example using classic mode?

spiral creek
#

Let me check.

past sun
#

thanks! also just to address your point about the documentation, I've flagged with the team that the documentation needs to be updated, but can confirm that (at least for billing_mode.type=flexible, this is the correct expected behaviour (no invoice generated when resetting the billing anchor using proration_behaviour=none)

spiral creek
#

It seems to work in classic mode indeed.

#

I probably made an error when testing this. Is this mode going to be deprecated ? Or is it here to stay.

past sun
#

thanks a lot for confirming!

#

classic mode may be deprecated in the future, as it's currently a 'legacy' form of behaviour, with flexible being the new default

#

there are no immediate plans to remove access to classic mode though

#

unfortunately, with flexible billing, it is not possible to reset the billing cycle anchor and have a full invoice, so the same behaviour can't currently be replicated in flexible mode

spiral creek
#

That might become an issue in the future then.

past sun
#

that said, I'll raise some feedback with our product team so that we can work on ensuring that this use case is supported if any changes happen to support for classic mode

spiral creek
#

Ok. Thank you !

past sun
#

no worries! thanks a lot for sharing your scenario with us and let me know if you have any other questions

spiral creek
#

Do you have statistics about how much is classic used compared to flexible ?

#

Do like 20% or 80% of your customers use flexible mode ?

past sun
#

I'm afraid I don't have that sort of visibility right now. If you'd like to open a thread with our support team we can try to follow up in more detail on the future plans for classic mode (though I should note that we may not be able to provide much in the way of specifics)

spiral creek
#

Understood.

#

Thank you for your help !

past sun
#

any time!