Move STRIPE_PUBLIC_KEY to secrets (i.e. local configuration)

This commit is contained in:
fnux 2020-03-05 11:51:08 +01:00
parent b958cc77ea
commit b07df26eb2
3 changed files with 3 additions and 6 deletions

View file

@ -15,6 +15,7 @@ LDAP_ADMIN_PASSWORD=""
LDAP_SERVER_URI = ""
# Stripe (Credit Card payments)
STRIPE_API_key=""
STRIPE_KEY=""
STRIPE_PUBLIC_KEY=""
SECRET_KEY="dx$iqt=lc&yrp^!z5$ay^%g5lhx1y3bcu=jg(jx0yj0ogkfqvf"

View file

@ -172,7 +172,3 @@ USE_TZ = True
# https://docs.djangoproject.com/en/3.0/howto/static-files/
STATIC_URL = '/static/'
################################################################################
# Stripe
STRIPE_PUBLIC_KEY=""

View file

@ -64,7 +64,7 @@ def handle_stripe_error(f):
# Actual Stripe logic.
def public_api_key():
return uncloud.settings.STRIPE_PUBLIC_KEY
return uncloud.secrets.STRIPE_PUBLIC_KEY
def get_customer_id_for(user):
try: