forked from uncloud/uncloud
Move all stripe stuff to stripe.py
This commit is contained in:
parent
e176ad0817
commit
ea00e81b1e
2 changed files with 2 additions and 7 deletions
|
@ -11,8 +11,6 @@ https://docs.djangoproject.com/en/3.0/ref/settings/
|
|||
"""
|
||||
|
||||
import os
|
||||
|
||||
import stripe
|
||||
import ldap
|
||||
|
||||
# Uncommitted file with secrets
|
||||
|
@ -174,5 +172,3 @@ USE_TZ = True
|
|||
# https://docs.djangoproject.com/en/3.0/howto/static-files/
|
||||
|
||||
STATIC_URL = '/static/'
|
||||
|
||||
stripe.api_key = uncloud.secrets.STRIPE_KEY
|
||||
|
|
|
@ -2,13 +2,12 @@ import stripe
|
|||
import stripe.error
|
||||
import logging
|
||||
|
||||
from django.conf import settings
|
||||
import uncloud.secrets
|
||||
|
||||
# Static stripe configuration used below.
|
||||
CURRENCY = 'chf'
|
||||
|
||||
# Register stripe (secret) API key from config.
|
||||
stripe.api_key = settings.STRIPE_API_KEY
|
||||
stripe.api_key = uncloud.secrets.STRIPE_KEY
|
||||
|
||||
# Helper (decorator) used to catch errors raised by stripe logic.
|
||||
def handle_stripe_error(f):
|
||||
|
|
Loading…
Reference in a new issue