Initialise Stripe API

This commit is contained in:
Mark Veidemanis 2022-07-21 13:48:07 +01:00
parent 1ff603faba
commit a1db79e14f
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 7 additions and 0 deletions

View File

@ -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