static void TestInvoices(StripePayment payment) { var invoices = payment.GetInvoices(10, 10); StripeInvoice inv = payment.GetInvoice(invoices.Data [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); }