Skip to content

Commit f30c6f2

Browse files
Merge pull request #20394 from mozilla/PAY-3650-free-trial-ending-email-displays-duplicated-amount
fix(payments-next): Free trial ending email displays duplicated amount
2 parents 8ce913e + 67beafd commit f30c6f2

6 files changed

Lines changed: 18 additions & 10 deletions

File tree

libs/accounts/email-renderer/src/templates/freeTrialEndingReminder/en.ftl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,23 @@ freeTrialEndingReminder-content-charge-heading = Charge details
2323
# $productName (String) - The name of the subscribed product, e.g. Mozilla VPN
2424
# $invoiceSubtotal (String) - The subtotal amount of the subscription, e.g. $12.99
2525
freeTrialEndingReminder-content-charge-subscription = { $productName } subscription: { $invoiceSubtotal }
26+
freeTrialEndingReminder-content-charge-subscription-2 = { $productName } subscription
2627
2728
# Variables:
2829
# $invoiceDiscountAmount (String) - The discount amount, as a negative number, e.g. -$3.00
2930
freeTrialEndingReminder-content-charge-discount = Discount: { $invoiceDiscountAmount }
31+
freeTrialEndingReminder-content-charge-discount-2 = Discount
3032
3133
# Variables:
3234
# $invoiceTaxAmount (String) - The tax amount, e.g. $1.20
3335
freeTrialEndingReminder-content-charge-tax = Tax: { $invoiceTaxAmount }
36+
freeTrialEndingReminder-content-charge-tax-2 = Tax
3437
3538
# Variables:
3639
# $serviceLastActiveDateOnly (String) - The date the charge will occur, e.g. January 20, 2016
3740
# $invoiceTotal (String) - The total amount due, e.g. $9.99
3841
freeTrialEndingReminder-content-charge-total = Total due on { $serviceLastActiveDateOnly }: { $invoiceTotal }
42+
freeTrialEndingReminder-content-charge-total-2 = Total due on { $serviceLastActiveDateOnly }
3943
4044
freeTrialEndingReminder-content-account-link = You can review or update your payment method and account information <a data-l10n-name="freeTrialEndingReminder-update-billing">here</a>.
4145
freeTrialEndingReminder-content-account-link-plaintext = You can review or update your payment method and account information here:

libs/accounts/email-renderer/src/templates/freeTrialEndingReminder/index.mjml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<table width="100%">
3737
<tr style="line-height: 24px;">
3838
<td style="text-align: start;">
39-
<span data-l10n-id="freeTrialEndingReminder-content-charge-subscription" data-l10n-args="<%= JSON.stringify({ productName, invoiceSubtotal }) %>">
39+
<span data-l10n-id="freeTrialEndingReminder-content-charge-subscription-2" data-l10n-args="<%= JSON.stringify({ productName }) %>">
4040
<%- productName %> subscription
4141
</span>
4242
</td>
@@ -52,7 +52,7 @@
5252
<table width="100%">
5353
<tr style="line-height: 24px; border-top: 1px solid #E0E0E6;">
5454
<td style="text-align: start;">
55-
<span data-l10n-id="freeTrialEndingReminder-content-charge-discount" data-l10n-args="<%= JSON.stringify({ invoiceDiscountAmount }) %>">
55+
<span data-l10n-id="freeTrialEndingReminder-content-charge-discount-2">
5656
Discount
5757
</span>
5858
</td>
@@ -69,7 +69,7 @@
6969
<table width="100%">
7070
<tr style="line-height: 24px; border-top: 1px solid #E0E0E6;">
7171
<td style="text-align: start;">
72-
<span data-l10n-id="freeTrialEndingReminder-content-charge-tax" data-l10n-args="<%= JSON.stringify({ invoiceTaxAmount }) %>">
72+
<span data-l10n-id="freeTrialEndingReminder-content-charge-tax-2">
7373
Tax
7474
</span>
7575
</td>
@@ -85,7 +85,7 @@
8585
<table width="100%">
8686
<tr style="line-height: 24px; border-top: 1px solid grey;">
8787
<td style="text-align: start; padding: 4px 0;">
88-
<span data-l10n-id="freeTrialEndingReminder-content-charge-total" data-l10n-args="<%= JSON.stringify({ serviceLastActiveDateOnly, invoiceTotal }) %>">
88+
<span data-l10n-id="freeTrialEndingReminder-content-charge-total-2" data-l10n-args="<%= JSON.stringify({ serviceLastActiveDateOnly }) %>">
8989
<b>Total due on <%- serviceLastActiveDateOnly %></b>
9090
</span>
9191
</td>

libs/accounts/email-renderer/src/templates/freeTrialEndingReminder/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export type TemplateData = {
1818
};
1919

2020
export const template = 'freeTrialEndingReminder';
21-
export const version = 1;
21+
export const version = 2;
2222
export const layout = 'subscription';
2323
export const includes = {
2424
subject: {

packages/fxa-auth-server/lib/senders/emails/templates/_versions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"freeTrialEndingReminder": 1,
2+
"freeTrialEndingReminder": 2,
33
"subscriptionReactivation": 2,
44
"subscriptionRenewalReminder": 4,
55
"subscriptionEndingReminder": 2,

packages/fxa-auth-server/lib/senders/emails/templates/freeTrialEndingReminder/en.ftl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,23 @@ freeTrialEndingReminder-content-charge-heading = Charge details
2323
# $productName (String) - The name of the subscribed product, e.g. Mozilla VPN
2424
# $invoiceSubtotal (String) - The subtotal amount of the subscription, e.g. $12.99
2525
freeTrialEndingReminder-content-charge-subscription = { $productName } subscription: { $invoiceSubtotal }
26+
freeTrialEndingReminder-content-charge-subscription-2 = { $productName } subscription
2627
2728
# Variables:
2829
# $invoiceDiscountAmount (String) - The discount amount, as a negative number, e.g. -$3.00
2930
freeTrialEndingReminder-content-charge-discount = Discount: { $invoiceDiscountAmount }
31+
freeTrialEndingReminder-content-charge-discount-2 = Discount
3032
3133
# Variables:
3234
# $invoiceTaxAmount (String) - The tax amount, e.g. $1.20
3335
freeTrialEndingReminder-content-charge-tax = Tax: { $invoiceTaxAmount }
36+
freeTrialEndingReminder-content-charge-tax-2 = Tax
3437
3538
# Variables:
3639
# $serviceLastActiveDateOnly (String) - The date the charge will occur, e.g. January 20, 2016
3740
# $invoiceTotal (String) - The total amount due, e.g. $9.99
3841
freeTrialEndingReminder-content-charge-total = Total due on { $serviceLastActiveDateOnly }: { $invoiceTotal }
42+
freeTrialEndingReminder-content-charge-total-2 = Total due on { $serviceLastActiveDateOnly }
3943
4044
freeTrialEndingReminder-content-account-link = You can review or update your payment method and account information <a data-l10n-name="freeTrialEndingReminder-update-billing">here</a>.
4145
freeTrialEndingReminder-content-account-link-plaintext = You can review or update your payment method and account information here:

packages/fxa-auth-server/lib/senders/emails/templates/freeTrialEndingReminder/index.mjml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<table width="100%">
3737
<tr style="line-height: 24px;">
3838
<td style="text-align: start;">
39-
<span data-l10n-id="freeTrialEndingReminder-content-charge-subscription" data-l10n-args="<%= JSON.stringify({ productName, invoiceSubtotal }) %>">
39+
<span data-l10n-id="freeTrialEndingReminder-content-charge-subscription-2" data-l10n-args="<%= JSON.stringify({ productName }) %>">
4040
<%- productName %> subscription
4141
</span>
4242
</td>
@@ -52,7 +52,7 @@
5252
<table width="100%">
5353
<tr style="line-height: 24px; border-top: 1px solid #E0E0E6;">
5454
<td style="text-align: start;">
55-
<span data-l10n-id="freeTrialEndingReminder-content-charge-discount" data-l10n-args="<%= JSON.stringify({ invoiceDiscountAmount }) %>">
55+
<span data-l10n-id="freeTrialEndingReminder-content-charge-discount-2">
5656
Discount
5757
</span>
5858
</td>
@@ -69,7 +69,7 @@
6969
<table width="100%">
7070
<tr style="line-height: 24px; border-top: 1px solid #E0E0E6;">
7171
<td style="text-align: start;">
72-
<span data-l10n-id="freeTrialEndingReminder-content-charge-tax" data-l10n-args="<%= JSON.stringify({ invoiceTaxAmount }) %>">
72+
<span data-l10n-id="freeTrialEndingReminder-content-charge-tax-2">
7373
Tax
7474
</span>
7575
</td>
@@ -85,7 +85,7 @@
8585
<table width="100%">
8686
<tr style="line-height: 24px; border-top: 1px solid grey;">
8787
<td style="text-align: start; padding: 4px 0;">
88-
<span data-l10n-id="freeTrialEndingReminder-content-charge-total" data-l10n-args="<%= JSON.stringify({ serviceLastActiveDateOnly, invoiceTotal }) %>">
88+
<span data-l10n-id="freeTrialEndingReminder-content-charge-total-2" data-l10n-args="<%= JSON.stringify({ serviceLastActiveDateOnly }) %>">
8989
<b>Total due on <%- serviceLastActiveDateOnly %></b>
9090
</span>
9191
</td>

0 commit comments

Comments
 (0)