1
0
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:
Kyle Spearrin
2017-04-04 10:13:16 -04:00
parent 5187f4c15f
commit a4ef7c906e
10 changed files with 29 additions and 11 deletions

View File

@ -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>();