【问题标题】:Why do my invoices have HastedInvoiceUrl being null in Stripe?为什么我的发票在 Stripe 中 HastedInvoiceUrl 为空?
【发布时间】:2021-12-21 11:44:53
【问题描述】:

为什么我的发票在 Stripe 中 HastedInvoiceUrl 为空?我应该在我的 Stripe 帐户的后台以某种方式配置它吗?

我正在使用 C# 中的 Stripe.InvoiceService.ListAutoPagingAsync 方法。

我的发票状态为草稿。根据the documentation

hosted_invoice_url 字符串

托管发票页面的 URL,允许客户查看和支付发票。如果发票尚未最终确定,则为空。

所以,我希望在 hosted_invoice_url 字段中看到一个链接,但它不存在。

【问题讨论】:

    标签: c# url stripe-payments invoice


    【解决方案1】:

    这是预期的行为。发票以draft 状态开始,稍后可以最终确定,此时其状态变为open[1]。如果您等到您的发票通过自动推进[2] 完成或自己手动完成[3] 发票,hosted_invoice_url 字段将不再为空。

    [1]https://stripe.com/docs/invoicing/overview#invoice-lifecycle

    [2]https://stripe.com/docs/invoicing/integration/automatic-advancement-collection

    [3]https://stripe.com/docs/invoicing/integration/workflow-transitions#finalized

    【讨论】:

      猜你喜欢
      • 2021-01-10
      • 2018-11-05
      • 2019-03-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-06-07
      • 2020-01-16
      相关资源
      最近更新 更多