From 5e9588ce7bee4a9f97230c4834b0b38dd0149d02 Mon Sep 17 00:00:00 2001 From: Dominic Villemure Date: Sun, 25 Aug 2024 14:14:54 -0400 Subject: [PATCH] Stripe key re-added --- src/Infrastructure/Stripe/StripeService.cs | 2 +- src/Web/appsettings.Development.json | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Infrastructure/Stripe/StripeService.cs b/src/Infrastructure/Stripe/StripeService.cs index 7b78fff..863db7c 100644 --- a/src/Infrastructure/Stripe/StripeService.cs +++ b/src/Infrastructure/Stripe/StripeService.cs @@ -15,7 +15,7 @@ public class StripeService : IStripeService public StripeService(IHttpContextAccessor httpContextAccessor, IConfiguration configuration) { _httpContextAccessor = httpContextAccessor; - var stripeKey = configuration["STRIPE-API-KEY"] ?? ""; + var stripeKey = configuration["Stripe:apiKey"] ?? ""; StripeConfiguration.ApiKey = stripeKey; } diff --git a/src/Web/appsettings.Development.json b/src/Web/appsettings.Development.json index 3428fe2..d23ea44 100644 --- a/src/Web/appsettings.Development.json +++ b/src/Web/appsettings.Development.json @@ -19,5 +19,8 @@ "Issuer": "https://auth.hutopy.com", "Key": "b2df428b9929d3ace7c598bbf4e496b2f0b71ab3cd4f94540356cfc35b000000" } + }, + "Stripe": { + "apiKey": "sk_test_51OoveVDrRyqXtNdBaOs1DFFja0XhrQtJoAo83uSySMuqw4Wyt9NsuugrIHRqet9a50cr5GvolpTP8EZuTSttcgYx00gOUPNDoI" } } \ No newline at end of file