From 78e5e029b63808810198708cc418832fa54a24f3 Mon Sep 17 00:00:00 2001
From: Alex Morask <144709477+amorask-bitwarden@users.noreply.github.com>
Date: Thu, 9 Oct 2025 11:40:13 -0500
Subject: [PATCH] [PM-26607] Improve premium purchase with account credit
experience (#16805)
* Fix account credit submission and show warning when user doesn't have enough credit
* Kyle's feedback
* Whoops
---
.../individual/premium/premium.component.html | 9 ++-
.../individual/premium/premium.component.ts | 57 ++++++++++++++++---
.../enter-payment-method.component.ts | 16 ++++--
.../payment/types/tokenized-payment-method.ts | 20 ++-----
apps/web/src/locales/en/messages.json | 3 +
5 files changed, 77 insertions(+), 28 deletions(-)
diff --git a/apps/web/src/app/billing/individual/premium/premium.component.html b/apps/web/src/app/billing/individual/premium/premium.component.html
index bcc87686f0..0a3762a1e4 100644
--- a/apps/web/src/app/billing/individual/premium/premium.component.html
+++ b/apps/web/src/app/billing/individual/premium/premium.component.html
@@ -105,6 +105,7 @@
[group]="formGroup.controls.paymentMethod"
[showBankAccount]="false"
[showAccountCredit]="true"
+ [hasEnoughAccountCredit]="hasEnoughAccountCredit$ | async"
>
{{ "total" | i18n }}: {{ total | currency: "USD $" }}/{{ "year" | i18n }}
-