Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guardian Ad-Lite : Checkout Ts&Cs Update #6764

Merged
merged 6 commits into from
Feb 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ export function StripeDisclaimer() {
<>
All card payments are powered by Stripe. Read the Stripe{' '}
<a href="https://stripe.com/privacy" target="_blank">
privacy policy
Privacy Policy
</a>{' '}
and{' '}
<a href="https://stripe.com/legal/end-users" target="_blank">
terms and conditions
Terms and conditions
</a>
.
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,13 @@ function TsAndCsRenewal({
export function TsAndCsFooterLinks({
countryGroupId,
amountIsAboveThreshold,
productKey,
}: {
countryGroupId: CountryGroupId;
amountIsAboveThreshold?: boolean;
productKey?: ActiveProductKey;
}) {
const inAdLite = productKey === 'GuardianAdLite';
const privacy = <a href={privacyLink}>Privacy Policy</a>;

const termsContributions = (
Expand All @@ -121,11 +124,14 @@ export function TsAndCsFooterLinks({

const terms = amountIsAboveThreshold
? termsSupporterPlus('Terms and Conditions')
: inAdLite
? termsGuardianAdLite('Terms')
: termsContributions;
paul-daniel-dempsey marked this conversation as resolved.
Show resolved Hide resolved
const productNameSummary = inAdLite ? 'the Guardian Ad-Lite' : 'our';

return (
<div css={marginTop}>
By proceeding, you are agreeing to our {terms}.{' '}
By proceeding, you are agreeing to {productNameSummary} {terms}.{' '}
<p css={marginTop}>
To find out what personal data we collect and how we use it, please
visit our {privacy}.
Expand Down Expand Up @@ -215,11 +221,15 @@ export function PaymentTsAndCs({
);
}

const copyBelowThreshold = (countryGroupId: CountryGroupId) => {
const copyBelowThreshold = (
countryGroupId: CountryGroupId,
productKey: ActiveProductKey,
) => {
return (
<TsAndCsFooterLinks
countryGroupId={countryGroupId}
amountIsAboveThreshold={amountIsAboveThreshold}
productKey={productKey}
/>
);
};
Expand Down Expand Up @@ -284,7 +294,8 @@ export function PaymentTsAndCs({
{inAllAccessDigital &&
copyAboveThreshold(contributionType, productKey, promotion)}
{inAdLite && copyAdLite(contributionType, productKey)}
{(inSupport || inAdLite) && copyBelowThreshold(countryGroupId)}
{(inSupport || inAdLite) &&
copyBelowThreshold(countryGroupId, productKey)}
{inDigitalEdition && copyDigitalEdition()}
</FinePrint>
</div>
Expand Down
Loading