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