【问题标题】:Get the list of STRIPE customer Payments获取 STRIPE 客户付款列表
【发布时间】:2015-09-23 14:22:00
【问题描述】:

我有一个 Stripe 帐户的客户列表。现在客户也完成了每月付款,我想要特定客户的付款清单。

我用过这个:

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

但是customerInfo 没有显示他到目前为止已完成的付款列表。

【问题讨论】:

  • 你可能需要使用 StripeChargeService 类
  • StripeInvoiceService 为我工作。但也会尝试你的想法。感谢您的建议
  • @HemantBhagat 如果您已解决,请将您自己的答案发布为答案。这可能会帮助其他有需要的人。
  • @Rohit Arora 请检查。我现在已经回答了这个问题

标签: c# asp.net-mvc-4 stripe-payments stripe.net


【解决方案1】:

付款完成并生成发票。因此,我只需使用 Stripe 的发票服务获取信息,如下所述:

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

现在invoicesOfCustomer 将列出他已完成的所有付款。

如果您有 invoiceId,那么您可以将其用于单张发票信息。

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

谢谢:)

【讨论】:

  • 收费时不会自动生成发票。您如何通过发票获取付款信息​​?
  • 我只是得到已经生成的发票列表。他只是要求获取生成的发票列表。
猜你喜欢
  • 2015-03-01
  • 1970-01-01
  • 1970-01-01
  • 2019-12-31
  • 2021-02-14
  • 1970-01-01
  • 1970-01-01
  • 2018-12-13
  • 1970-01-01
相关资源
最近更新 更多