代码之家  ›  专栏  ›  技术社区  ›  Dubby

更新订阅cli回调请求时,元数据中要提供的正确Stripe资源是什么?

  •  0
  • Dubby  · 技术社区  · 3 年前

    我不知道如何使用Stripe API cli回调工具*请求在更新订阅请求中包含所需的元数据。我有这个:

    stripe trigger customer.subscription.updated --add customer_subscription:metadata['Environment']=dev

    我怀疑问题出在 customer_subscription 资源,但我尝试过每种组合,但都没有成功。我一直在遵循(除其他外)这个例子: How to add parameters to a Stripe trigger in the console?

    * https://stripe.com/docs/stripe-cli

    1 回复  |  直到 3 年前
        1
  •  1
  •   qichuan    3 年前

    如果您想向订阅添加元数据,我认为这是您需要运行的命令

    stripe trigger customer.subscription.updated --add subscription:metadata['Environment']=dev