public IActionResult Index(TestModel model) { //var product = new Product //{ // Name = "Product 1" //}; //var response = _service.CreateProduct(product); //product.Id = response.id; //_db.Product.Add(product); //_db.SaveChanges(); //var price = new Price //{ // Amount = 50, // ProductId = "prod_IFBXVCJcTIUnsk", // Currency = "usd", // Nickname = "Primary" //}; //var response = _service.CreatePrice(price); //price.Id = response.id; //_db.Prices.Add(price); //_db.SaveChanges(); var response = _service.CreateInvoiceItem("cus_IEuw9XTVoO0eMW", "price_1HehEOIarr7Ydt676Dac6RCP", 1); //var response = _service.CreateInvoice("cus_IEuw9XTVoO0eMW"); //var amount = _service.GetCustomerBalance("cus_IEuw9XTVoO0eMW"); return(RedirectToAction("Index", "Home")); }