mirror of
https://github.com/bitwarden/server.git
synced 2025-07-02 00:22:50 -05:00
stripe subscription creation
This commit is contained in:
@ -33,6 +33,7 @@ using Bit.Api.IdentityServer;
|
||||
using Bit.Core.Enums;
|
||||
using Microsoft.AspNetCore.DataProtection;
|
||||
using Microsoft.WindowsAzure.Storage;
|
||||
using Stripe;
|
||||
|
||||
namespace Bit.Api
|
||||
{
|
||||
@ -83,6 +84,9 @@ namespace Bit.Api
|
||||
.ProtectKeysWithCertificate(dataProtectionCert);
|
||||
}
|
||||
|
||||
// Stripe Billing
|
||||
StripeConfiguration.SetApiKey(globalSettings.StripeApiKey);
|
||||
|
||||
// Repositories
|
||||
services.AddSingleton<IUserRepository, SqlServerRepos.UserRepository>();
|
||||
services.AddSingleton<ICipherRepository, SqlServerRepos.CipherRepository>();
|
||||
|
Reference in New Issue
Block a user