簡體   English   中英

獲取STRIPE客戶付款清單

[英]Get the list of STRIPE customer Payments

我有條紋帳戶上的客戶列表。 現在,客戶也已經完成了每月付款,我想要特定客戶的付款清單。

我用了這個:

StripeCustomerService stripeCustomerInfo = new StripeCustomerService();
var customerInfo = stripeCustomerInfo.Get("customerId");

但是customerInfo不會顯示到目前為止他已完成的付款清單。

付款完成並生成發票。 所以我只是像下面提到的那樣使用Stripe的發票服務獲取信息:

StripeInvoiceService invoiceService = new StripeInvoiceService();
var invoicesOfCustomer = invoiceService.List(10, 0, "CustomerId");

現在invoicesOfCustomer將具有他已完成的所有付款的列表。

如果您有invoiceId則可以將此用於單個發票信息。

var invoiceInfo = invoiceService.Get("invoiceId");

謝謝 :)

暫無
暫無

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

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