[英]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.