app-generator / ecommerce-django-stripe

Django Stripe Sample - Soft UI Design (Free Sample) | AppSeed
https://blog.appseed.us/django-stripe-mini-ecommerce/
Other
60 stars 17 forks source link

Stripe doesn't work #22

Open vilm725 opened 6 days ago

vilm725 commented 6 days ago

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

image

I put the stripe keys in the env file correctly : image

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/")
vilm725 commented 1 day ago

Hello 👋🏻 Have you had time to resolve the issue? I opened a premium ticket on your website but no one answers.

app-generator commented 1 day ago

Hello @vilm725

We've replied here: https://github.com/app-generator/ecommerce-flask-stripe/issues/5#issuecomment-2471089438

TY!