WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@elizabeth-ilina
Copy link
Contributor

@elizabeth-ilina elizabeth-ilina commented Dec 5, 2025

Because

  • Need to handle when customer clicks "cancel subscription" for an active subscription and give them a potential churn intervention offer.

This pull request

Returns Cancel Interstitial offer content if:

  • custom content exists
  • currentInterval matches current subscription plan interval
  • the current plan interval has an upgraded plan of
  • the customer is eligible for the upgraded plan of

Otherwise, returns Cancel churn content if:

  • churn content exists for “cancel”
  • customer is eligible to redeem

If neither exists, the customer will continue to Cancel Subscription page.

  • Includes logging metrics to StatsD/BQ

Issue that this pull request solves

Closes #PAY-3370

Checklist

Put an x in the boxes that apply

  • My commit is GPG signed.
  • If applicable, I have modified or added tests which pass locally.
  • I have added necessary documentation (if appropriate).
  • I have verified that my changes render correctly in RTL (if appropriate).

Screenshots (Optional)

Please attach the screenshots of the changes made in case of change in user interface.

Other information (Optional)

Any other information that is important to this pull request.

@elizabeth-ilina elizabeth-ilina force-pushed the PAY-3370-cancellation-flow-update-churn-intervention-logic branch from afd82a0 to f875fbe Compare December 5, 2025 19:19
Because:

* Need to handle when customer clicks "cancel subscription" for an active subscription and give them a potential churn intervention offer.

This commit:

Returns Cancel Interstitial offer content if:
* custom content exists
* currentInterval matches current subscription plan interval
* the current plan interval has an upgraded plan of <toInterval>
*  the customer is eligible for the upgraded plan of <toInterval>

Otherwise, returns Cancel churn content if:
* churn content exists for “cancel”
* customer is eligible to redeem

If neither exists, the customer will continue to Cancel Subscription page.

* Includes logging metrics to StatsD/BQ

Closes #[PAY-3370](https://mozilla-hub.atlassian.net/browse/PAY-3370)
@elizabeth-ilina elizabeth-ilina force-pushed the PAY-3370-cancellation-flow-update-churn-intervention-logic branch from f875fbe to 3911387 Compare December 5, 2025 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants