diff --git a/views.py b/views.py index c12b910..ffb8507 100644 --- a/views.py +++ b/views.py @@ -103,7 +103,7 @@ def pro_complete(request): if request.method == 'POST': token = request.POST['token'] - stripe.api_key = os.environ.get('STRIPE_SECRET_KEY', settings.STRIPE_SECRET_KEY) + stripe.api_key = os.environ.get('STRIPE_SECRET_KEY', '') try: customer = stripe.Customer.create(email=request.user.email,