mirror of
https://github.com/bitwarden/server.git
synced 2024-11-24 12:35:25 +01: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.");
|
||||
}
|
||||
|
||||
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 daysUntilDue = sub.DaysUntilDue;
|
||||
var chargeNow = collectionMethod == "charge_automatically";
|
||||
|
Loading…
Reference in New Issue
Block a user