Use invoice preview API to calculate plan pricing for SaaS purchase
What does this MR do and why?
Uses invoicePreview GraphQL endpoint to preview transaction during SaaS purchase flow
- With the introduction of preview transaction API, this MR also introduces a loading state and error handling for the same
Screenshots or screen recordings
How to set up and validate locally
- Start
gdk
in SaaS modeGITLAB_SIMULATE_SAAS=true gdk start
- Go to a free group's billing page: Settings -> Billing
- Click on
Upgrade
CTA on one of the plans
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.
Related to #388075
Edited by Vamsi Vempati