1
0
mirror of https://github.com/bitwarden/server synced 2025-12-14 23:33:41 +00:00

setup: process paypal with stripe subscription

This commit is contained in:
Kyle Spearrin
2019-01-29 13:12:11 -05:00
parent 54c6ffeece
commit e54a381dba
8 changed files with 157 additions and 20 deletions

View File

@@ -66,7 +66,7 @@ namespace Bit.Core.Services
_eventService = eventService;
_installationRepository = installationRepository;
_applicationCacheService = applicationCacheService;
_stripePaymentService = new StripePaymentService();
_stripePaymentService = new StripePaymentService(globalSettings);
_globalSettings = globalSettings;
}
@@ -1208,7 +1208,7 @@ namespace Bit.Core.Services
throw new BadRequestException("Invalid installation id");
}
var paymentService = new StripePaymentService();
var paymentService = new StripePaymentService(_globalSettings);
var billingInfo = await paymentService.GetBillingAsync(organization);
return new OrganizationLicense(organization, billingInfo, installationId, _licensingService);
}