mirror of
https://github.com/bitwarden/server.git
synced 2025-04-06 21:48:12 -05:00
PM-11602 | Error toast when expired org attempts to auto scale is unclear (#4746)
This commit is contained in:
parent
793ef3aab8
commit
81190c1bdf
@ -783,6 +783,11 @@ public class StripePaymentService : IPaymentService
|
|||||||
throw new GatewayException("Subscription not found.");
|
throw new GatewayException("Subscription not found.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (sub.Status == SubscriptionStatuses.Canceled)
|
||||||
|
{
|
||||||
|
throw new BadRequestException("You do not have an active subscription. Reinstate your subscription to make changes.");
|
||||||
|
}
|
||||||
|
|
||||||
var collectionMethod = sub.CollectionMethod;
|
var collectionMethod = sub.CollectionMethod;
|
||||||
var daysUntilDue = sub.DaysUntilDue;
|
var daysUntilDue = sub.DaysUntilDue;
|
||||||
var chargeNow = collectionMethod == "charge_automatically";
|
var chargeNow = collectionMethod == "charge_automatically";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user