Skip to content

Conversation

@elizabeth-ilina
Copy link
Contributor

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

Because

  • We want to reduce churn by giving customers offers when they either go to cancel their subscription, or encourage them to stay subscribed to a subscription that will soon expire.

This pull request

  • Determines customer's eligibility, and either displays appropriate messages + takes them to corresponding links, or keeps existing behaviour.

Issue that this pull request solves

Closes: (issue number) #PAY-3365

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.

Stay Subscribed churn content exists and customer is eligible:
image

Clicking on Cancel button when:
Cancel churn content exists and customer is eligible (for 123Done Pro):
image

No cancel churn content exists or they are not eligible to redeem, but there is a cancel interstitial offer:
image

No offers exist or customer is not eligible for either:
image

Other information (Optional)

Any other information that is important to this pull request.

@elizabeth-ilina elizabeth-ilina force-pushed the PAY-3365-update-page-subscription-management-with-churn branch 5 times, most recently from 78ed29b to d0c1a9a Compare December 30, 2025 20:48
@elizabeth-ilina elizabeth-ilina force-pushed the PAY-3365-update-page-subscription-management-with-churn branch 17 times, most recently from 4dcef96 to b804803 Compare January 6, 2026 18:07
acceptLanguage?: string | null,
selectedLanguage?: string
) {
/*return {
Copy link
Contributor Author

@elizabeth-ilina elizabeth-ilina Jan 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Used for testing (and, equivalently, in determineCancellationIntervention). Will remove both before merging.

@elizabeth-ilina elizabeth-ilina marked this pull request as ready for review January 6, 2026 18:10
@elizabeth-ilina elizabeth-ilina requested review from a team as code owners January 6, 2026 18:10
@elizabeth-ilina elizabeth-ilina force-pushed the PAY-3365-update-page-subscription-management-with-churn branch from b804803 to 000b094 Compare January 6, 2026 18:10
subscriptionId: subscription.id,
offeringApiIdentifier,
currentInterval: subplatInterval,
upgradeInterval: SubplatInterval.Yearly, // For now, have only yearly plan upgrades
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to keep this comment here?

import { SubplatInterval } from '@fxa/payments/customer';
import { SubplatInterval,
SubscriptionManager,
/*Enum_Churnintervention_Churntype,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as this comment

Because:

* We want to reduce churn by giving customers offers when they either go to cancel their subscription, or encourage them to stay subscribed to a subscription that will soon expire.

This commit:

* Determines customer's eligibility, and either displays appropriate messages + takes them to corresponding links, or keeps existing behaviour.

Closes #PAY-3365
@elizabeth-ilina elizabeth-ilina force-pushed the PAY-3365-update-page-subscription-management-with-churn branch from 000b094 to 4ed8c7d Compare January 6, 2026 21:33
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