Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Error about API Key #423

Open
paulocoutinhox opened this issue Sep 19, 2024 · 0 comments
Open

Error about API Key #423

paulocoutinhox opened this issue Sep 19, 2024 · 0 comments

Comments

@paulocoutinhox
Copy link
Contributor

Hi,

Im receiving error when use TEST api key or LIVE api key.

I always get message:

Traceback (most recent call last):
  File "/app/.local/lib/python3.10/site-packages/django/core/handlers/exception.py", line 55, in inner
    response = get_response(request)
  File "/app/.local/lib/python3.10/site-packages/django/core/handlers/base.py", line 197, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/app/.local/lib/python3.10/site-packages/django/contrib/auth/decorators.py", line 60, in _view_wrapper
    return view_func(request, *args, **kwargs)
  File "/app/./apps/web/views/shop.py", line 66, in shop_buy_by_tag_view
    form = payment.get_form(data=request.POST or None)
  File "/app/.local/lib/python3.10/site-packages/payments/models.py", line 147, in get_form
    return provider.get_form(self, data=data)
  File "/app/.local/lib/python3.10/site-packages/payments/stripe/providers.py", line 103, in get_form
    raise pe
  File "/app/.local/lib/python3.10/site-packages/payments/stripe/providers.py", line 100, in get_form
    session = self.create_session(payment)
  File "/app/.local/lib/python3.10/site-packages/payments/stripe/providers.py", line 143, in create_session
    raise PaymentError(e) from e
payments.PaymentError: Invalid API Key provided: "sk_test*************************************************************************************************u5m"

The key is exactly what is on Stripe, but never works.

What can be wrong?

Thanks.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant