#stripotheo-subscriptions
1 messages · Page 1 of 1 (latest)
👋 happy to help
I'm just trying to get some context from yesterday's thread
Switching prices does not normally change the billing date or generate an immediate charge unless:
The billing interval is changed (e.g., monthly to yearly).
The subscription moves from free to paid, or paid to free.
A trial starts or ends.
That's right. In my case, I change billing interval, but it happens during trial. Trial neither starts, nor ends, it happens in the middle of trial. So although docs state that changing interval causes immediate charge, I didnt suspect it to happen during trial. So what I try to achieve is all pending invoice items to be charged at the end of trial (I have proration_behavior=None, so after trial new invoice is created)
you can use the old subscription trial_end and set that to the next subscription
would that fix the issue for you?
During changing subscription (I dont create new one, just change existing) I dont change trial_end, it stays the same. It can also be proved by looking at subscription.updated event - trial_end is not among changed attributes.
could you please give me a subscription id sub_xxx so I could take a look?
sub_1KyJkeGf8BA8ODTSZ0UJcfa7 for customer cus_Lff3nGzFkGU5nm
Hm, I think I didnt. I'll try it, and come back if anything comes up. Thanks for the hint
let me know if you need any more help
Unfortunately, it didnt help, nothing changed after adding proration_behavior=none and charge was still created (sub_1KyYVCGf8BA8ODTSgTWrQz42)
Hi! I'm taking over tarzan.
Could you summarize your question/issue while I catchup?
Hi, no problem.
So when I update subscription in the middle of trial period, so that interval is changed, any pending invoice items are charged.
And my goal is to charge all of them at the end of trial.
depends how you do the update really
some updates always require immediate payment , like moving from a free to a paid plan, or changing the billing cycle. That can't be avoided https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#immediate-payment
'So although docs state that changing interval causes immediate charge, I didnt suspect it to happen during trial.
it does yes.
there's no workaround here beyond doing the update later(like using a Schedule to do it at the end of the trial period) or doing something convoluted like applying a 100% off one-time coupon with the update so the invoice ends up as $0, and then manually adding the pending invoice items back to the customer so they're charged for later