ecommerce-django-stripe
ecommerce-django-stripe copied to clipboard
Stripe doesn't work
Hi 👋🏻
I love using your applications to do deployment tests with docker and kubernetes !
Since the beginning of October, I noticed that all your applications with stripe no longer work (django, flask, fastapi) with always the same error :
Uncaught (in promise) IntegrationError: Invalid value for Stripe(): apiKey should be a string. You specified: null.
r https://js.stripe.com/v3/:1
n https://js.stripe.com/v3/:1
r https://js.stripe.com/v3/:1
t https://js.stripe.com/v3/:1
ce https://js.stripe.com/v3/:1
se https://js.stripe.com/v3/:1
e https://js.stripe.com/v3/:1
Au https://js.stripe.com/v3/:1
<anonymous> http://10.212.216.20:8000/static/assets/js/payments.js:7
promise callback* http://10.212.216.20:8000/static/assets/js/payments.js:5
v3:1:690066
I put the stripe keys in the env file correctly :
I put the stripe keys, deleted the key pair and recreated another one but it doesn't work. Can you, please, fix this problem?
EDIT 1 : When I test my stripe keys in the doc (stripe test application), it is 100% functional. So, I think the problem comes from the application unfortunately 😕 (https://docs.stripe.com/checkout/quickstart)
EDIT 2 : I've try to edit the file ecommerce-django-stripe/core/settings.py and past api key of stripe but it still doesn't work :
STRIPE_SECRET_KEY = os.getenv("STRIPE_SECRET_KEY", "sk_test_51P0mINBk56tqE...")
STRIPE_PUBLISHABLE_KEY = os.getenv("STRIPE_PUBLISHABLE_KEY", "pk_test_51P0mINBk56tq...")
DOMAIN_URL = os.getenv("DOMAIN_URL", "http://127.0.0.1:8000/")