Enable Deep Linking to the Renewal Flow for self-managed subscriptions

Overview:

When users are instructed to access customers.gitlab.com to renew their subscription via the renewal email, they are required to log in and are taken to the plans page. This is a confusing experience because they then need to navigate to "Manage Purchases" and find the "renew" button for the corresponding subscription.

We want to simplify that flow for users by enabling deep linking to the renewal flow for the corresponding plan.

Acceptance Criteria:

  • We can take a user directly to the renewal flow for their plan that requires renewal
  • If we cannot go directly to the renewal flow for the subscription, we should at least take the user to the manage purchases page
  • Renewal emails are updated to leverage the new mechanism
  • Banner links to renew are updated

G/W/T

PERSONA: Gitlab .com group owner GIVEN: My subscription is coming close to renewal
AND: I am logged in and see the renewal banner
WHEN: I click the renewal banner link
THEN: I am logged into the customer portal and taken to the /subscriptions page automatically

WHEN: I click on a link in the renewal email
THEN: I am brought to the Customer Portal signin page and log in
THEN: I am taken to the /subscription page automatically


PERSONA: Gitlab billing admin (self-managed) GIVEN: My subscription is coming close to renewal
AND: I am logged in and see the renewal banner
WHEN: I click the renewal banner link
THEN: I am logged into the customer portal and taken to the renew page for the corresponding subscription automatically

WHEN: I click on a link in the renewal email
THEN: I am brought to the Customer Portal signin page and log in
THEN: I am logged into the customer portal and taken to the /subscription page automatically

Edited by Michael Karampalas