#MikeGreat

1 messages ยท Page 1 of 1 (latest)

hollow portalBOT
night vigil
#

Hi
Nope you can't using Subscriptions, you should use Subscription Schedule to plan future updates

cold acorn
#

can you explain better

night vigil
#

You can upgrade the user to a new plan with a future start date, by configuring a subscription schedule phase

cold acorn
#

this is my use case, I start a plan A as trialing and when the user decides to upgrade to plan B I calculate the proprated amount of Plan A and deduct from Plan B . then call the subscription upgrade api.

#

the charge is done via invoice

#

the problem is that propration doesnt work on a trialing when the user upgrades

#

@night vigil

night vigil
cold acorn
#

for out business use case, we want to be able to charge the user during an upgrade while on a trialing plan

#

but this isnt working as expected because the upgrade prorates over 0 amount

#

@night vigil

#

hello @night vigil

silver void
#

HI there ๐Ÿ‘‹ I'm jumping in as my teammate needs to step away.

cold acorn
#

ok tnx

#

did you get my questions

silver void
cold acorn
#

ok, so a user on trial plan A wants to upgrade to a plan B. Currently, when the user upgrades, the new plan still remains at trialing and so no money is collected

#

i want to be able to charge the user using proration even on a trialing plan

silver void
#

Am I understanding correctly that when you update the Subscription you don't want it to remain in a trialing state?

cold acorn
#

yes and the invoice created should be a prorated amount

#

not 0 amount

silver void
cold acorn
#

yes, but the invoice generated isnt prorated

#

the trialing issue is fixed when i set it to end now but the invoice generated isnt a prorated amount

silver void
#

What are you passing for proration_behavior when you're updating the Subscription?

cold acorn
#

always

silver void
#

Can you share the ID of a Subscription that you were testing with when you saw this behavior?

cold acorn
#

ok i will generate a new one

#

also @silver void will the upgrade prorate correctly ? since the amount unused on a trialing plan is 0.

silver void
#

Wait, that's a good point, if you're coming from a trial then what is there to prorate if the customer hasn't already paid?

cold acorn
#

yes, but we have a use case where we collect that amount as part of another product and give them a trial plan

#

so in the sense , the user already paid for the plan

silver void
#

But our service doesn't know that's what you're doing, and we don't have prebuilt functionality to support something like that. So if that is behavior that you will want then you will need to build custom code to explicitly control what is being charged for prorations.

cold acorn
#

i have done a manual proration using the invoice api. the issue i face is how do i set a new billing cycle on a subscription . this billing cycle should charge the customer after a year. since i already created an invoice

#

@silver void

silver void
#

I'm sorry, I don't think I understand what you're trying to say. The length of a billing cycle for a Subscription is controlled by the Price objects within it. Is that what you're referring to, or are you referring to the billing_cycle_anchor?

cold acorn
#

can i modify a subscription start date?

silver void
#

Not once it has started.

cold acorn
#

is there a way i can change it after it has started

#

?

#

@silver void

silver void
#

No

#

Set all Stripe terms aside for a second, in a complete sentence please tell me what you're trying to accomplish.