private static void TestInvoices(StripePayment payment) { List<StripeInvoice> invoices = payment.GetInvoices(10, 10); StripeInvoice inv = payment.GetInvoice(invoices[0].Id); StripeCustomer cust = payment.CreateCustomer(new StripeCustomerInfo()); StripeSubscription sub = payment.Subscribe(cust.Id, new StripeSubscriptionInfo { Card = GetCC() }); StripeInvoice inv2 = payment.GetUpcomingInvoice(cust.Id); payment.Unsubscribe(cust.Id, true); payment.DeleteCustomer(cust.Id); }