예제 #1
0
        // GET: Test
        public ActionResult Index()
        {
            var customerList = new StripeCustomerService().List();
            StripeCustomer firstcustomer = customerList.First();
            //  var invoice = new StripeInvoice();

            StripeInvoice firstCusomterInvoice =
                new StripeInvoiceService().List().FirstOrDefault(x => x.CustomerId == firstcustomer.Id);

            return View(firstCusomterInvoice);
        }
        // GET: Invoices
        public ActionResult Index()
        {
            //CUS ID For Testing
            //cus_75PYlPJEmsQb9X

            var customerList = new StripeCustomerService().List();
            StripeCustomer firstcustomer = customerList.First();
            //  var invoice = new StripeInvoice();

            StripeInvoice firstCusomterInvoice =
                new StripeInvoiceService().List().FirstOrDefault(x => x.CustomerId == firstcustomer.Id);

            return View(firstCusomterInvoice);
        }