首页 > 解决方案 > stripe-cli 总是返回 401

问题描述

我正在尝试在docker 容器内的本地环境中的linux 命令行中使用stripe-cli,但在尝试访问 webhook 时总是得到401 。

支付方式为soft。

我可以看到键已在条带仪表板中注册。我究竟做错了什么?

登录

stripe login --interactive
Enter your API key: 
Your API key is: sk_test_******************************kv6Q
How would you like to identify this device in the Stripe Dashboard? [default: XXXX] 
> Done! The Stripe CLI is configured for xxxx.com with account id acct_1Fb.........23u

听众

stripe listen --forward-to https://xxxxx.local:30443/webhooks/charges --skip-verify
> Ready! Your webhook signing secret is whsec_BzBp8LT...............2xEk (^C to quit)
2019-12-29 06:34:23   --> source.chargeable [evt_1Fuu............l]
2019-12-29 06:34:23  <--  [401] POST https://xxxx.local:30443/webhooks/charges [evt_1Fuu............Zl]
2019-12-29 06:34:25   --> charge.pending [evt_1Fuu..................BH7gS]
2019-12-29 06:34:25  <--  [401] POST https://xxxx.local:30443/webhooks/charges [evt_1FuuQ0Iq..................S]

标签: dockerstripe-payments

解决方案


推荐阅读