Skip to content

Forward promo_code param from group selector

What does this MR do and why?

Allows us to set promo_code param in the subscription new group flow. This param is forwarded to CustomersDot and allows us to auto-apply it.

References

Issue: https://gitlab.com/gitlab-org/customers-gitlab-com/-/issues/13901

Screenshots or screen recordings

CleanShot_2025-10-15_at_12.52.54

existing_group

How to set up and validate locally

  1. Visit http://localhost:3000/-/subscriptions/groups/new?plan_id=2c92a00d76f0d5060176f2fb0a5029ff&promo_code=SAAS_DISCOUNT
  2. Test selecting an existing group and creating a new group
  3. You should be redirected to CustomersDot with the promo_code param forwarded. i.e. http://localhost:5000/subscriptions/new?plan_id=2c92a00d76f0d5060176f2fb0a5029ff&gl_namespace_id=160&promo_code=SAAS_DISCOUNT

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Ryan Cobb

Merge request reports

Loading