diff --git a/stripe_checkout/stripe_checkout/management/commands/processevents.py b/stripe_checkout/stripe_checkout/management/commands/processevents.py index 25c09568a7587a8e4f57df23ed7cb1d36a72a0a5..9cdc7e0512fbc54240886ad1466f8e696fa8a4d7 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():