diff --git a/src/Core/Services/Implementations/UserService.cs b/src/Core/Services/Implementations/UserService.cs index 948e215e41..e1e297fcc9 100644 --- a/src/Core/Services/Implementations/UserService.cs +++ b/src/Core/Services/Implementations/UserService.cs @@ -692,6 +692,12 @@ namespace Bit.Core.Services throw new BadRequestException("You can't subtract storage!"); } + if((paymentMethodType == PaymentMethodType.GoogleInApp || + paymentMethodType == PaymentMethodType.AppleInApp) && additionalStorageGb > 0) + { + throw new BadRequestException("You cannot add storage with this payment method."); + } + string paymentIntentClientSecret = null; IPaymentService paymentService = null; if(_globalSettings.SelfHosted)