From a1db79e14f7a7aad1a8d86ff10de2dba4abd7906 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Thu, 21 Jul 2022 13:48:07 +0100 Subject: [PATCH] Initialise Stripe API --- core/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/__init__.py b/core/__init__.py index e69de29..f4247b9 100644 --- a/core/__init__.py +++ b/core/__init__.py @@ -0,0 +1,7 @@ +import stripe +from django.conf import settings + +if settings.STRIPE_TEST: + stripe.api_key = settings.STRIPE_API_KEY_TEST +else: + stripe.api_key = settings.STRIPE_API_KEY_PROD