我需要向我的 PayPal webhook 调用添加自定义 header ,以便我可以在 Slack 中发送消息。有什么方法可以向 PayPal webhook 请求添加 header 吗?
最佳答案
我在 webhook 创建中没有看到任何可以让您为 PayPal 设置自定义 header 以与 webhook 一起发送的内容:https://developer.paypal.com/docs/api/webhooks/v1/#webhooks_post
因此,直接的解决方案是让 webhook 转到您自己的代码/监听器,并且您的 webhook 监听器可以立即调用 Slack API 来发送消息。
关于PayPal webhook 自定义 header ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59618278/