【问题标题】:Create Stripe refund using Custom Request in Zapier在 Zapier 中使用自定义请求创建 Stripe 退款
【发布时间】:2020-05-23 13:48:17
【问题描述】:

我正在尝试在 Zapier 中使用 webhook 和自定义请求创建 Stripe refund。我看过这个例子Curl Command via Zapier to Create Stripe Invoice with Params,但它并没有真正起作用,因为我收到一条错误消息:“应用程序返回“https://stripe.com/docs/error-codes/parameter-missing”。这通常发生在您的 Zap 缺少必填字段或字段值时t 以可识别的格式。”我们向 api.stripe.com 发出请求并收到 (400) 错误请求。

This is how my Custom Request looks like in Zapier

【问题讨论】:

    标签: stripe-payments zapier


    【解决方案1】:

    您请求中的“数据”部分需要采用 url 编码格式,因为您在标头部分的内容类型中指定了该格式。因此,更改为这种格式: 收费=ch123456&原因=测试 更好的选择是使用 Zapier 的 POST 请求而不是 Zapier 自定义请求。 像这样: https://imgur.com/t3Ihy2S 你的帖子看起来像: https://imgur.com/b3EkAB8 干净多了。

    【讨论】:

      【解决方案2】:

      在查看 Stripe 中的日志后修复了该问题。 "type": "invalid_request_error" 为我指明了正确的方向。我试图使用退款对象“收费”。我们正在使用 Stripe Checkout,因此必须使用“payment_intent”。现在一切都好!这是一个有效的 Zap,它将根据付款意图创建退款。

      This is a working Zap that will create a refund on a Payment Intent.

      【讨论】:

        猜你喜欢
        • 2018-07-21
        • 2021-05-18
        • 1970-01-01
        • 2017-12-20
        • 1970-01-01
        • 2018-07-15
        • 2021-06-10
        • 2019-04-06
        • 2018-05-12
        相关资源
        最近更新 更多