silver icon indicating copy to clipboard operation
silver copied to clipboard

Implement subscription change

Open pdobrescu opened this issue 8 years ago • 1 comments

Currently you can change a subscription by simply altering the plan attached to that subscription. The downside of this is that the entire history also gets changed.

An example where this model fails is:

  • subscription A has plan B with the metered feature C, and 0 amount of metered feature included in plan B
  • you change this plan for the same subscription A, to plan D, having the same metered feature associated, but having E metered feature included in plan D.

In this case, if the customer has consumed some metered features before the plan change, then there will be no charge for the amount E of metered feature, included in plan D.

I see two solutions for this:

Solution A

  • When you change the plan for a subscription, it won't touch the previous plans included in that subscription. In other words preserve the plan history without altering it if the plan has changed. Right now when you change a plan, it will change it for all history.

Solution B

  • When you change the plan for a subscription, end that subscription with the old plan at the end of the billing cycle and start a new subscription with the new plan starting with the next billing cycle.

Remains TBD which one is better.

pdobrescu avatar May 06 '16 10:05 pdobrescu

This issue will be automatically closed on Tue, 17 Jan 2017 due to the lack of activity (comments or updates). Closed issues that remain inactive for a long period of time might also get automatically locked.

If you think this is an error or you want to keep the issue from being closed reply with a comment or apply the keep-open label to permanently disable auto-closing.

cc: @calind, @pdobrescu, @vtemian

presslabs-bot avatar Dec 30 '16 22:12 presslabs-bot