【问题标题】:Stripe.net and Stripe APIStripe.net 和 Stripe API
【发布时间】:2017-01-13 07:23:10
【问题描述】:

我正在寻找最新的 stripe.net (https://github.com/jaymedavis/stripe.net/tree/v6.11.0) 与 stripe.com api (https://stripe.com/docs/upgrades) 的兼容性。

有人知道stripe.net和stripe.com api之间是否有兼容关系吗?

【问题讨论】:

    标签: api stripe.net


    【解决方案1】:

    Stripe docs:

    当我们对 API 进行向后不兼容的更改时,我们会发布新的过时版本。当前版本为 2016-07-06。阅读我们的API upgrades guide 以查看我们的API changelog 并了解有关向后兼容性的更多信息。

    ...

    所有请求都将使用您的帐户 API 设置,除非您覆盖 API 版本。

    ...

    要为特定请求设置 API 版本,请发送 Stripe-Version 标头。

    Stripe.net 为每个请求设置Stripe-Version——目前为2016-07-06。在 GitHub 存储库中,您可以看到设置它的代码。请参阅 here 了解它使用的 API 版本,以及 here 它实际添加标头的位置。

    【讨论】:

      猜你喜欢
      • 2017-10-08
      • 1970-01-01
      • 1970-01-01
      • 2016-01-03
      • 2017-11-05
      • 1970-01-01
      • 2015-04-11
      • 2021-07-13
      • 2016-11-28
      相关资源
      最近更新 更多