Skip to content

Send namespace id to fetch invoice preview

Josianne Hyson requested to merge jh/send_namespace_to_invoice_preview into master

What does this MR do and why?

Send namespace id in the request params when fetching invoice preview.

Addresses https://gitlab.com/gitlab-org/gitlab/-/issues/407596

Step MR
1. Accept the namespace_id in the API https://gitlab.com/gitlab-org/customers-gitlab-com/-/merge_requests/7128
2. Start sending the namespace_id from GitLab THIS MR
3. Start using the namespace ID in the purchase flow https://gitlab.com/gitlab-org/customers-gitlab-com/-/merge_requests/7112
4. Mark the namespace as ineligible after purchase https://gitlab.com/gitlab-org/customers-gitlab-com/-/merge_requests/7141

Screenshots or screen recordings

Screenshots can be found here.

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

Viewing the checkout page

  1. Enable use_invoice_preview_api_in_saas_purchase from rails console
    • Feature.enable(:use_invoice_preview_api_in_saas_purchase)
  2. Go to the billing page of a group with free plan
  3. Choose to upgrade the plan to Premium
  4. The price details are shown on the order summary panel

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

Loading