mirror of
https://github.com/jcreek/SvelteKitSaasBoilerplate.git
synced 2026-07-12 18:43:50 +00:00
778 B
778 B
Stripe webhook event listening
First ensure you've installed the Stripe CLI
Log in using the stripe CLI:
stripe login
Obtain your Webhook signing secret:
stripe listen
Add the secret key to to your .env(.local):
PUBLIC_STRIPE_ENDPOINT_SECRET
Testing the webhook locally
You can use the Stripe CLI to forward events to your local server:
stripe listen --forward-to localhost:5173/api/webhook/stripe
To disable HTTPS certificate verification, use the --skip-verify optional flag.
stripe listen --forward-to localhost:5173/api/webhook/stripe --skip-verify
TODO - Add instructions for what else to do to get the webhook working locally.