#stripotheo-subscriptions

1 messages · Page 1 of 1 (latest)

hollow lark
#

👋 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.

unique oracle
#

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)

hollow lark
#

you can use the old subscription trial_end and set that to the next subscription

#

would that fix the issue for you?

unique oracle
#

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.

hollow lark
#

could you please give me a subscription id sub_xxx so I could take a look?

unique oracle
#

sub_1KyJkeGf8BA8ODTSZ0UJcfa7 for customer cus_Lff3nGzFkGU5nm

hollow lark
#

I will take a look

#

did you try using proration_behavior = none?

unique oracle
#

Hm, I think I didnt. I'll try it, and come back if anything comes up. Thanks for the hint

hollow lark
#

let me know if you need any more help

unique oracle
#

Unfortunately, it didnt help, nothing changed after adding proration_behavior=none and charge was still created (sub_1KyYVCGf8BA8ODTSgTWrQz42)

hybrid meteor
#

Hi! I'm taking over tarzan.

#

Could you summarize your question/issue while I catchup?

unique oracle
#

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.

thorn fractal
#

depends how you do the update really

#

'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