From ea7c586c9c8430014bd355444ce5e76edbe15644 Mon Sep 17 00:00:00 2001
From: Pelle Koster <pelle.koster@geant.org>
Date: Thu, 27 Mar 2025 14:55:10 +0100
Subject: [PATCH] Add missing stripe api key

---
 .../stripe_checkout/management/commands/processevents.py         | 1 +
 1 file changed, 1 insertion(+)

diff --git a/stripe_checkout/stripe_checkout/management/commands/processevents.py b/stripe_checkout/stripe_checkout/management/commands/processevents.py
index 25c0956..9cdc7e0 100644
--- a/stripe_checkout/stripe_checkout/management/commands/processevents.py
+++ b/stripe_checkout/stripe_checkout/management/commands/processevents.py
@@ -30,6 +30,7 @@ Amount: EUR {amount}
 
 class Command(BaseCommand):
     def handle(self, *args, **options):
+        stripe.api_key = settings.STRIPE_API_KEY
         unhandled_events = Event.objects.filter(handled=False).all()
         for event in unhandled_events:
             with transaction.atomic():
-- 
GitLab