Skip to content

Changing subscription plan #264

@ignaciocunado

Description

@ignaciocunado

Whilst implementing functionality for users to be able to change their subscription plan/quantity, we came across the following scenario:

  1. A user has a yearly subscription and wants to downgrade into a monthly subscription (this should happen at the end of their current cycle since they agreed to pay for a year)
  2. Using swapNextCycle, their subscription attribute next_plan is set for a monthly subscription and a new order item is scheduled for the end of their cycle.
  3. This same user now wants to increase their subscription count (eg. from 1 to 2) which should happen immediately since this is considered an upgrade.

Problem: If we use the current functionality, a new cycle will start when upgrading their subscription count. This will cause the scheduled order item containing the next_plan to be removed.

When should the plan downgrade happen?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions