docker - 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]
解决方案
推荐阅读
- sql - 如何从 SQL Server 中具有列 time_stamp 条件的表中选择插入?
- recursion - 使用递归从二叉搜索树中删除节点
- html - 为什么我不能在文本周围环绕图像?
- java - 如何检查图像视图是否有从 Android Studio 中的图库上传的图像?
- ssh - 将密码保护的私有 SSH 密钥传输到另一台机器
- complexity-theory - 释放内存如何影响空间复杂度?
- javascript - 使用 onBlur 而不是 onChange 时重置表单
- javascript - 请问我该如何解决VS Code React Project上的这个错误
- c# - C# 编写具有两个值的 if 语句的更好方法
- flutter - Flutter 提供者最佳实践