To get your Stripe API keys:
Webhooks are essential for handling Stripe events (successful payments, subscription updates, etc.).
Install the Stripe CLI to get your webhook secret
Login to the Stripe CLI:
This command will output your webhook signing secret - copy it to
For each product, you’ll need to create multiple prices:
For each product:
.env
To find your price IDs:
price_XXXXXXXXXXXXXXXXX
Webhooks are essential for handling Stripe events (successful payments, subscription updates, etc.).
Open webhooks in the Stripe Dashboard
Click “Add webhook”
Set your webhook URL to:
https://yourdomain.com/api/webhooks/stripe
Add the following events:
Use Stripe’s test cards for payments:
4242 4242 4242 4242
4000 0000 0000 0002
See Stripe Testing for more information.
Before going live:
To get your Stripe API keys:
Webhooks are essential for handling Stripe events (successful payments, subscription updates, etc.).
Install the Stripe CLI to get your webhook secret
Login to the Stripe CLI:
This command will output your webhook signing secret - copy it to
For each product, you’ll need to create multiple prices:
For each product:
.env
To find your price IDs:
price_XXXXXXXXXXXXXXXXX
Webhooks are essential for handling Stripe events (successful payments, subscription updates, etc.).
Open webhooks in the Stripe Dashboard
Click “Add webhook”
Set your webhook URL to:
https://yourdomain.com/api/webhooks/stripe
Add the following events:
Use Stripe’s test cards for payments:
4242 4242 4242 4242
4000 0000 0000 0002
See Stripe Testing for more information.
Before going live: