Sign up for a Stripe account.
Add your Stripe secret key and webhook secret to the .env file.
.env
# .env STRIPE_SECRET_KEY= STRIPE_WEBHOOK_SECRET=
Get started by installing the Stripe CLI.
Then forward the Stripe webhook events to your local server.
stripe listen --forward-to localhost:3000/pay/webhook