1
0
mirror of https://github.com/bitwarden/server synced 2025-12-19 17:53:44 +00:00

[PM-21383] Use Stripe to get provider pricing for display when feature flag is on (#5842)

* Use ProviderPriceAdapter when getting provider subscription

* Update test
This commit is contained in:
Alex Morask
2025-05-21 08:10:34 -04:00
committed by GitHub
parent 3aa9812353
commit e994bf2117
7 changed files with 54 additions and 2 deletions

View File

@@ -35,7 +35,7 @@ public record ProviderSubscriptionResponse(
.Select(providerPlan =>
{
var plan = providerPlan.Plan;
var cost = (providerPlan.SeatMinimum + providerPlan.PurchasedSeats) * plan.PasswordManager.ProviderPortalSeatPrice;
var cost = (providerPlan.SeatMinimum + providerPlan.PurchasedSeats) * providerPlan.Price;
var cadence = plan.IsAnnual ? _annualCadence : _monthlyCadence;
return new ProviderPlanResponse(
plan.Name,