【发布时间】:2015-08-28 00:46:53
【问题描述】:
我的它是一个墨盒/夹层应用程序,在正确设置 https 的情况下运行良好。它工作正常,直到结帐过程结束,我在浏览器中收到以下调试错误:
异常类型:AuthenticationError
异常值:
未提供 API 密钥。 (提示:使用“stripe.api_key =”设置您的 API 密钥)。您可以从 Stripe Web 界面生成 API 密钥。有关详细信息,请参阅https://stripe.com/api,如果您有任何问题,请发送电子邮件至 support@stripe.com。
异常位置:/home/jamesgilbert/lib/python2.7/stripe/api_requestor.py in request_raw, line 183
追溯: get_response 中的文件“/home/johnsmith/webapps/cartridgeshop/lib/python2.7/Django-1.8.4-py2.7.egg/django/core/handlers/base.py” 132.响应=wrapped_callback(请求,*callback_args,**callback_kwargs) _wrapped_view_func 中的文件“/home/johnsmith/webapps/cartridgeshop/lib/python2.7/Django-1.8.4-py2.7.egg/django/views/decorators/cache.py” 57. response = view_func(request, *args, **kwargs) checkout_steps 中的文件“/home/johnsmith/lib/python2.7/cartridge/shop/views.py” 282. transaction_id = payment_handler(请求、表单、订单) payment_handler 中的文件“/home/johnsmith/lib/python2.7/cartridge_stripe/init.py” 34. 描述=订单) 创建文件“/home/johnsmith/lib/python2.7/stripe/resource.py” 344. response, api_key = requestor.request('post', url, params, headers) 请求中的文件“/home/johnsmith/lib/python2.7/stripe/api_requestor.py” 140. method.lower(), url, 参数, 标题) request_raw 中的文件“/home/johnsmith/lib/python2.7/stripe/api_requestor.py” 183. '未提供 API 密钥。 (提示:使用 '
设置您的 API 密钥然后我在 apache 错误日志中得到以下信息: /home/johnsmith/lib/python2.7/cartridge/shop/views.py:226:
用户警告:SHOP_CHECKOUT_FORM_CLASS 设置已弃用 - 请为 checkout_steps 视图定义您自己的 urlpattern,并传入您自己的 form_class 参数。
我在设置中有正确的条带 api 键,一切都按原样设置,我在其他地方查看过并且走到了死胡同?
非常感谢
【问题讨论】:
标签: python-2.7 django-models stripe-payments mezzanine cartridge