1
0
mirror of https://github.com/bitwarden/server synced 2025-12-15 07:43:54 +00:00

purchase org with paypal support

This commit is contained in:
Kyle Spearrin
2019-01-31 14:25:46 -05:00
parent 952d624d72
commit 9f876d9bff
3 changed files with 168 additions and 92 deletions

View File

@@ -682,6 +682,11 @@ namespace Bit.Core.Services
throw new BadRequestException("Already a premium user.");
}
if(additionalStorageGb < 0)
{
throw new BadRequestException("You can't subtract storage!");
}
IPaymentService paymentService = null;
if(_globalSettings.SelfHosted)
{