Call Stripe Product into Web Api

505 Views Asked by At

I´m working in ASP.NET Core 2.0 Web Application MVC

Actually I integrate Stripe checkout to my project using Stripe Documentation, but into Stripe dashboard I can see we can create products, so I think we can call products from .Net but how we can call them using ASP.NET Core?

There is an image of what I´m talking about

Stripe Image

1

There are 1 best solutions below

0
On

You can use the StripeProductService within the stripe nuget package.

var productService = new StripeProductService();
StripeList<StripeProduct> productItems = productService.List();

That will give you a list of all products stored in stripe. The full documentation is here: https://stripe.com/docs/api/dotnet#list_products