From b164a39abcff1fdf8030cee21a713e07dc5ac2c8 Mon Sep 17 00:00:00 2001 From: Justin Baur Date: Fri, 5 Nov 2021 14:59:45 -0400 Subject: [PATCH] Update payment info (#1274) * Added manual routing * Add additional copy for free trial * Revert * Fix formatting * Switch text to be on the top of the payment info * Update to put text at top of the screen --- .../settings/organization-plans.component.html | 16 ++++++++-------- src/app/settings/organization-plans.component.ts | 6 ++++-- src/locales/en/messages.json | 8 +------- 3 files changed, 13 insertions(+), 17 deletions(-) diff --git a/src/app/settings/organization-plans.component.html b/src/app/settings/organization-plans.component.html index b30bc88e613..bd13503b56e 100644 --- a/src/app/settings/organization-plans.component.html +++ b/src/app/settings/organization-plans.component.html @@ -219,6 +219,14 @@

{{ (createOrganization ? 'paymentInformation' : 'billingInformation') | i18n}}

+ + {{'paymentChargedWithTrial' | i18n}} + + + + {{'paymentCharged' | i18n : (selectedPlanInterval | i18n) }} + +
@@ -233,14 +241,6 @@

{{'total' | i18n}}: {{total | currency:'USD $'}}/{{selectedPlanInterval | i18n}}

- - {{'paymentChargedWithTrial' | i18n : (selectedPlanInterval | i18n) }} - - - - {{'paymentCharged' | i18n : (selectedPlanInterval | i18n) }} - - diff --git a/src/app/settings/organization-plans.component.ts b/src/app/settings/organization-plans.component.ts index 6d872c6bedc..d2659d20f48 100644 --- a/src/app/settings/organization-plans.component.ts +++ b/src/app/settings/organization-plans.component.ts @@ -67,7 +67,6 @@ export class OrganizationPlansComponent implements OnInit { productTypes = ProductType; formPromise: Promise; singleOrgPolicyBlock: boolean = false; - freeTrial: boolean = false; plans: PlanResponse[]; @@ -176,6 +175,10 @@ export class OrganizationPlansComponent implements OnInit { return subTotal; } + get freeTrial() { + return this.selectedPlan.trialPeriodDays != null; + } + get taxCharges() { return this.taxComponent != null && this.taxComponent.taxRate != null ? (this.taxComponent.taxRate / 100) * this.subtotal : @@ -200,7 +203,6 @@ export class OrganizationPlansComponent implements OnInit { this.selectedPlan.hasAdditionalSeatsOption) { this.additionalSeats = 1; } - this.freeTrial = this.selectedPlan.trialPeriodDays != null; } changedOwnedBusiness() { diff --git a/src/locales/en/messages.json b/src/locales/en/messages.json index c31eb8591cd..6b0dd924d37 100644 --- a/src/locales/en/messages.json +++ b/src/locales/en/messages.json @@ -1743,13 +1743,7 @@ } }, "paymentChargedWithTrial": { - "message": "Your plan comes with a free 7 day trial. Your payment method will not be charged until the trial has ended. Billing will occur on a recurring basis each $INTERVAL$. You may cancel at any time.", - "placeholders": { - "interval": { - "content": "$1", - "example": "month or year" - } - } + "message": "Your plan comes with a free 7 day trial. Your payment method will not be charged until the trial has ended. You may cancel at any time." }, "paymentInformation": { "message": "Payment Information"