0

I've a list of customers on Stripe Account. Now the customers have done the monthly payments also, I want the list of the payments of particular customer.

I've used this :

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

But customerInfo doesn't displays the list of his payments that he has done so far.

Hemant Bhagat
  • 173
  • 11

1 Answers1

-1

As the payments are made & invoices are generated. So i simply get the info using Invoice Service of Stripe like mentioned below :

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

now invoicesOfCustomer will have a list of all the payments that he has done.

If you have invoiceId then you can use this for single invoice info.

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

Thanks :)

Hemant Bhagat
  • 173
  • 11