簡體   English   中英

為什么我的發票在 Stripe 中 HastedInvoiceUrl 為空?

[英]Why do my invoices have HastedInvoiceUrl being null in Stripe?

為什么我的發票在 Stripe 中 HastedInvoiceUrl 為空? 我應該在我的 Stripe 帳戶的后台以某種方式配置它嗎?

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

我的發票處於草稿狀態。 根據文檔

hosted_invoice_url 字符串

托管發票頁面的 URL,允許客戶查看和支付發票。 如果發票尚未最終確定,這將為空。

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

這是預期的行為。 發票以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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM