An .NET Core implementation
- .NET Core
- Configured .env file
- Confirm
.envconfiguration
This sample requires a Price ID in the PRICE environment variable.
Open .env and confirm PRICE is set equal to the ID of a Price from your
Stripe account. It should look something like:
PRICE=price_1Hh1ZeCZ6qsJgndJaX9fauRl
Note that price_12345 is a placeholder and the sample will not work with that
price ID. You can create a price
from the dashboard or with the Stripe CLI.
- Run the application
dotnet run Program.cs
- If you're using the html client, go to
localhost:4242to see the demo. For react, visitlocalhost:3000.