Customers should only be able to renew 15 days before subscription expiration date
Problem
Today, customers are able to renew their subscription early via the Customer Portal. This can create various downstream issues, like the following:
- Early renewal can cause issues for reconciliations
- Prevent users from accidentally renewing multiple times
- Renewing subscription multiple times will cause trueup error when its count is changed
Sales Assisted renewals have already been aligned to the FY22 Booking Policy, which states that we wait to close the renewal till 15 days from renewal date. We now need to align self-service renewals to the same policy.
Original issue thread: https://gitlab.com/gitlab-org/customers-gitlab-com/-/issues/3182#note_599340590
Proposal
Prevent early renewals by hiding "Renew" button 15 days before Subscription End Date, and add a related check in the backend.
backend specific tasks:
- Lock down the
/renew
route from the backend. Hiding therenew
button isn't sufficient since we're linking to the renew route from multiple places (CustomersDot, Billing page)
frontend specific tasks:
- Disable the "Renew" button 15 days before Subscription End Date
- Add a tooltip explaining why it's disabled (perhaps
Ability to renew will be available in X days
)
Result
Customers can only renew their subscription 15 days before renewal date.
Next steps (if any)
How will we measure success?
Edited by Tatyana Golubeva