This repo contains a sample application that shows how to integrate Stripe Checkout into an ASP.NET Core application. The solution contains three projects.
Add your Stripe API keys to the configuration here: src/ContosoCrafts.Web.Server/appsettings.json
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"AllowedHosts": "*",
"Stripe": {
"PubKey": "<your-stripe-publishable-key>",
"SecretKey": "<your-stripe-secret-key>"
}
}
Build and run the ContosoCrafts.Web.Server project.
> cd src/ContosoCrafts.Web.Server
> dotnet run
- Visual Studio Code
- .NET 5 SDK
- A Stripe test account