Stripe CLI Webhooks & Event Testing

Stripe CLI webhook forwarding, listen, trigger, fixtures, and local integration testing patterns.

View
StandardDetailedCompact
Export
Copy the compact sheet, download it, or print it.
Download
`D` dense toggle · `C` copy all
## Listen and Forward
Forward all events to localhost
stripe listen --forward-to localhost:3000/api/webhooks/stripe
Filter forwarded events
stripe listen --events checkout.session.completed,payment_intent.succeeded --forward-to localhost:3000/api/webhooks/stripe
Reuse event config from Dashboard endpoint
stripe listen --load-from-webhooks-api --forward-to localhost:3000
Listen for Connect account events
stripe listen --forward-connect-to localhost:3000/api/webhooks/connect
Capture the webhook signing secret
stripe listen --forward-to localhost:3000/webhooks

# Use the signing secret printed by listen to verify incoming events locally.

Forward to local HTTPS and skip cert verification
stripe listen --skip-verify --forward-to https://localhost:8443/webhooks/stripe
## Trigger Fixtures and Test Events
Trigger checkout.session.completed
stripe trigger checkout.session.completed
Trigger payment_intent.created
stripe trigger payment_intent.created
Trigger charge.failed
stripe trigger charge.failed
Trigger customer.subscription.created
stripe trigger customer.subscription.created
Show available trigger fixtures
stripe trigger --help
List checkout-specific trigger fixtures
stripe trigger checkout --help
## Inspect Events and Deliveries
List recent events
stripe events list --limit 25
Retrieve one event payload
stripe events retrieve evt_123
List only a specific event type via shell filter
stripe events list --limit 100 | jq ".data[] | select(.type=="payment_intent.succeeded")"
List webhook endpoints
stripe webhook_endpoints list
Create a webhook endpoint
stripe webhook_endpoints create --url https://example.com/webhooks/stripe --enabled-events payment_intent.succeeded --enabled-events checkout.session.completed
Delete a webhook endpoint
stripe webhook_endpoints delete we_123

Recommended next

No recommendations yet.