From ad1ad86968019099ea4d2d54134312e90e717651 Mon Sep 17 00:00:00 2001 From: William Stein Date: Tue, 10 Dec 2024 17:32:07 +0000 Subject: [PATCH] automatic payments: improve messaging and alerting a little --- src/packages/frontend/i18n/trans/extracted.json | 2 +- src/packages/frontend/purchases/balance-button.tsx | 7 ++++++- src/packages/frontend/purchases/balance.tsx | 2 +- src/packages/frontend/purchases/payments.tsx | 12 +++++++++--- .../purchases/stripe-metered-subscription.tsx | 2 +- .../next/components/store/usage-and-duration.tsx | 2 +- .../server/purchases/maintain-subscriptions.ts | 2 +- src/packages/server/purchases/resume-subscription.ts | 4 ++-- src/packages/server/purchases/stripe/get-payments.ts | 6 ++++-- .../purchases/stripe/process-payment-intents.ts | 11 ++++++++--- 10 files changed, 34 insertions(+), 16 deletions(-) diff --git a/src/packages/frontend/i18n/trans/extracted.json b/src/packages/frontend/i18n/trans/extracted.json index 2b29e061ac..1bf16da5b0 100644 --- a/src/packages/frontend/i18n/trans/extracted.json +++ b/src/packages/frontend/i18n/trans/extracted.json @@ -1490,7 +1490,7 @@ "defaultMessage": "Search for projects (use /re/ for regexp)..." }, "purchases.automatic-payments-warning.description": { - "defaultMessage": "Automatic payments are much more convenient, will save you time, and ensure subscriptions don't get cancelled by accident." + "defaultMessage": "Automatic payments are much more convenient, will save you time, and ensure subscriptions don't get canceled by accident." }, "purchases.automatic-payments-warning.title": { "defaultMessage": "Automatic payments are NOT required to have a subscription" diff --git a/src/packages/frontend/purchases/balance-button.tsx b/src/packages/frontend/purchases/balance-button.tsx index afa3e6a04e..4bf19ee827 100644 --- a/src/packages/frontend/purchases/balance-button.tsx +++ b/src/packages/frontend/purchases/balance-button.tsx @@ -50,7 +50,12 @@ export default function BalanceButton({