Skip to content

Validate and purchase SaaS subscription with coupon code

What does this MR do and why?

Adds ability to validate and apply promo code for SaaS subscription purchase

Screenshots or screen recordings

Feature Flag On

Scenario Screenshot
Initial loading state FF_On_Initial_loading_state
Applying promo code Applying_promo_code
Invalid code Invalid_code
Invalid quantity Invalid_quantity
Successful scenarios link
Bronze plan purchase (no change) FF_On_Bronze_purchase
Successful Bronze plan purchase (no change) FF_On_Bronze_purchase_success FF_On_Bronze_purchase_card
Addon purchase (no change) Screenshot_2023-01-27_at_4.12.18_PM
Addon purchase successful (no change) Screenshot_2023-01-27_at_4.13.48_PM

Feature Flag Off (regression testing to make sure everything is working as before)

Scenario Screenshot
Addon purchase FF_Off_Addon_CI_Minutes_purchase
Addon purchase successful FF_Off_Addon_CI_Minutes_purchase_success
Successful Bronze plan purchase FF_Off_Bronze_purchase_success FF_Off_Bronze_card
Successful premium plan purchase FF_Off_Premium_purchase_success FF_Off_Premium_card

use_invoice_preview_api_in_saas_purchase Feature Flag Off

Scenario Screenshot
SaaS purchase flow Preview_API_FF_Off

How to set up and validate locally

Instructions can be found here

MR acceptance checklist

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

Related to #383298

Edited by Vamsi Vempati

Merge request reports