Skip to content

Use invoice preview API response to show or hide promotional offer text

What does this MR do and why?

Use showPromotionalOfferText value from invoice preview API response to control the visibility of promotional offer text on Checkout page when purchasing a subscription

Cannot be merged until

  • This MR is merged
  • This feature flag (related to the above MR) is enabled on Production

Related to https://gitlab.com/gitlab-org/gitlab/-/issues/408928

Screenshots or screen recordings

Scenario Screenshot
With feature flag enabled Screen_Recording_2023-05-03_at_11.29.23_AM
With feature flag disabled Screen_Recording_2023-05-03_at_11.32.50_AM

How to set up and validate locally

Prerequisite

  1. Customers Dot needs to be setup in order to view the billing/checkout page
  2. Start GDK in SaaS mode GITLAB_SIMULATE_SAAS=1 gdk start
  3. Checkout the branch from this MR
  4. Enable the feature flag

Viewing the checkout page

  1. Go to the billing page of a group with free plan
  2. Choose to upgrade the plan to Premium which takes us to the Checkout page

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Vamsi Vempati

Merge request reports