Stripe
Set up the API
Go to the stripe (opens in a new tab) to create a new key, then save it somewhere in the app, for example in an .env.local
file.
STRIPE_SECRET_KEY=your_api_key
Create a product
In Stripe supports creating product in run time, configure your product with description in the application, for example we have a price list inside src/config/price.ts
.
priceList = [
{
name: 'Course Launch Kit',
price: '269' // Price of the product
// Other Details
}
// other product
]
Create a webhook
Go to the webhooks (opens in a new tab) to create a new webhook, then save the webhook id somewhere in the app, for example in an .env.local
file.
STRIPE_WEBHOOK_SECRET=your_webhook_id