Skip to content

feat(payments-next): Add t&c for free trials#20254

Open
xlisachan wants to merge 1 commit intomainfrom
PAY-3546
Open

feat(payments-next): Add t&c for free trials#20254
xlisachan wants to merge 1 commit intomainfrom
PAY-3546

Conversation

@xlisachan
Copy link
Copy Markdown
Contributor

@xlisachan xlisachan commented Mar 25, 2026

This pull request

  • adds T&C's free trials if customer is eligible for free trial

Issue that this pull request solves

Closes: PAY-3546

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.

Screenshots

Mobile
Screenshot 2026-03-27 at 9 38 44 AM

Tablet+
Screenshot 2026-03-27 at 9 38 15 AM

interval: cart.interval as SubplatInterval,
eligibilityStatus: eligibility.subscriptionEligibilityResult,
});
} catch {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Should this be a try/catch? 🤔

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If we prefer this to be in a try/catch, it shouldn't eat the error (as this does). We'll want it to hit Sentry at the very least.

That said, it's my opinion that we should bail completely if we fail the eligibility check.

@xlisachan xlisachan force-pushed the PAY-3546 branch 2 times, most recently from 7296d40 to 98ffa43 Compare March 25, 2026 16:37
@xlisachan xlisachan marked this pull request as ready for review March 25, 2026 17:10
@xlisachan xlisachan requested review from a team as code owners March 25, 2026 17:10

## $endDate (Date) - The end date of the free trial
checkbox-payment-required-no-charge = A payment method is required to start your free trial. You will not be charged until { $endDate }.
checkbox-confirm-free-trial-with-legal-links = I authorize { -brand-mozilla } to charge my payment method for the amount shown, according to the <termsOfServiceLink>Terms of Service</termsOfServiceLink> and <privacyNoticeLink>Privacy Notice</privacyNoticeLink>, after the free trial ends on { $endDate }, until I cancel my subscription.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
checkbox-confirm-free-trial-with-legal-links = I authorize { -brand-mozilla } to charge my payment method for the amount shown, according to the <termsOfServiceLink>Terms of Service</termsOfServiceLink> and <privacyNoticeLink>Privacy Notice</privacyNoticeLink>, after the free trial ends on { $endDate }, until I cancel my subscription.
checkbox-confirm-free-trial-with-legal-links = I authorize { -brand-mozilla } to charge my payment method for the amount shown after the free trial ends on { $endDate }, according to the <termsOfServiceLink>Terms of Service</termsOfServiceLink> and <privacyNoticeLink>Privacy Notice</privacyNoticeLink>, until I cancel my subscription.

Not a blocker, but this might be somewhat easier to read/parse.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Updated per your suggestion, thanks Bryan! :)

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.

3 participants