#baloshi69

1 messages · Page 1 of 1 (latest)

raw zephyrBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

bleak swan
#

Hello

pastel delta
#

hey sir, how are you

bleak swan
#

We can't re-open threads but if you'll summarize your issue here then I'd be happy to help.

#

Great, thanks

pastel delta
#

So i am trying to update a subscription for a client, but i want pro-rated rate

which mean, if client is sub to 100$ product, and he want to sub for a 200$ product, i want to charge him 100$ only.

so a nice guy from here says i need to use https://stripe.com/docs/billing/subscriptions/upgrade-downgrade method.

just want to ask, it have two way to do it

-Update the subscription

  • Update the subscription item

i just want to ask, will both method then charge the customer the remaining amount automaticly whcih one should i use.

and i also want to get notified when the charge is done. for that shoudl i enable a webhook with customer.subscription.updated event

Learn how to upgrade and downgrade subscriptions by changing the price.

bleak swan
#

Do these different products have the same billing interval?

#

(Like are they both monthly?)

pastel delta
#

yes monthly

bleak swan
#

Okay and are you okay with the new product being charged at the next billing cycle but include the prorated rates?

#

Or do you want to charge it immediately?

pastel delta
#

yah nice question, i want the charge be imidiately but billing cycle remain same

bleak swan
#

Hmm okay you can't really have both of those things

pastel delta
#

what do you mean, i am only changing one product to another , i dont want to keep the previous product.

bleak swan
#

Yeah but you can't charge a prorated amount immediately in the middle of the month and then also charge the customer again the full amount at the end of the month.

#

I mean... you can... by using a trial period, but that ends up charging your customer more than the amount of product they actually get.

#

If you want that behavior I can describe it to you, but why not just wait and charge them at the normal billing cycle?

pastel delta
#

hmm nice edge case.

#

but i am then giving him the 2nd product which is is more feture and the prorated price is which is the deduction of current produt with previous one, is for new feture whcih he gonna use

bleak swan
#

Or why not just reset the billing cycle anchor so that they are now charged in the middle of the month going forward?

bleak swan
pastel delta
#

no mattar for billing cycle it can be resetted stating for current date

bleak swan
#

If you don't set proration_behavior at all then the billing cycle anchor will be the same and an Invoice Item will be added and charged at the next billing cycle renewal.

#

Otherwise, if you want to charge immediately, you set proration_behavior: 'always_invoice'

pastel delta
#

it have too call shoudl i use ** Update the subscription item** or ** Update the Subscription**

#

And it will Charge the customer and trigger the event customer.subscription.updated

bleak swan
#

You should use the Update Subscription endpoint

#

And yes a customer.subscription.updated will be emitted

#

However it will only charge if you set proration_behavior: 'always_invoice'

#

The best thing to do is to test this out

pastel delta
#

Thanks a lot @bleak swan sir ♥️

bleak swan
#

Sure