mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 07:36:14 -05:00
billing fixes and added gateway to subscriber
This commit is contained in:
@ -16,12 +16,12 @@ namespace Bit.Core.Utilities
|
||||
throw new ArgumentNullException(nameof(storableSubscriber));
|
||||
}
|
||||
|
||||
if(string.IsNullOrWhiteSpace(storableSubscriber.StripeCustomerId))
|
||||
if(string.IsNullOrWhiteSpace(storableSubscriber.GatewayCustomerId))
|
||||
{
|
||||
throw new BadRequestException("No payment method found.");
|
||||
}
|
||||
|
||||
if(string.IsNullOrWhiteSpace(storableSubscriber.StripeSubscriptionId))
|
||||
if(string.IsNullOrWhiteSpace(storableSubscriber.GatewaySubscriptionId))
|
||||
{
|
||||
throw new BadRequestException("No subscription found.");
|
||||
}
|
||||
|
Reference in New Issue
Block a user