Send namespace id to fetch invoice preview
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
- Customers Dot needs to be setup in order to view the billing/checkout page
- Start GDK in SaaS mode
GITLAB_SIMULATE_SAAS=1 gdk start
Viewing the checkout page
- Enable
use_invoice_preview_api_in_saas_purchase
from rails consoleFeature.enable(:use_invoice_preview_api_in_saas_purchase)
- Go to the billing page of a group with free plan
- Choose to upgrade the plan to Premium
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Vamsi Vempati