stripe-webhook-replay-lab
Replay signed Stripe webhook payloads to a local or staging endpoint for idempotency and retry debugging.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/daniellummis/stripe-webhook-replay-labStripe Webhook Replay Lab
Use this skill to replay the same signed Stripe webhook event multiple times against your endpoint and validate idempotency behavior.
What this skill does
- Loads a Stripe event payload from a JSON file or inline env var
- Generates valid Stripe
Stripe-Signatureheaders using your webhook secret (whsec_...) - Replays the exact same payload N times to simulate duplicate deliveries/retries
- Prints per-attempt HTTP status and latency with a pass/fail summary
Inputs
Required:
STRIPE_WEBHOOK_URL(target endpoint)STRIPE_WEBHOOK_SECRET(Stripe endpoint secret used to verify signatures)
Payload source (choose one):
STRIPE_EVENT_PATH(default:fixtures/sample-checkout-session-completed.json)STRIPE_EVENT_JSON(inline JSON payload; overridesSTRIPE_EVENT_PATH)
Optional:
REPLAY_COUNT(default:2)REPLAY_DELAY_SECONDS(default:0)REQUEST_TIMEOUT_SECONDS(default:15)ACCEPT_HTTP_CODES(comma-separated exact HTTP codes accepted as success; default empty = any 2xx)
Run
STRIPE_WEBHOOK_URL=http://localhost:8000/webhooks/stripe \
STRIPE_WEBHOOK_SECRET=whsec_test_123 \
bash scripts/replay-stripe-webhook.sh
Force five duplicate deliveries with a small delay:
STRIPE_WEBHOOK_URL=http://localhost:8000/webhooks/stripe \
STRIPE_WEBHOOK_SECRET=whsec_test_123 \
REPLAY_COUNT=5 \
REPLAY_DELAY_SECONDS=0.2 \
bash scripts/replay-stripe-webhook.sh
Use inline payload JSON:
STRIPE_WEBHOOK_URL=http://localhost:8000/webhooks/stripe \
STRIPE_WEBHOOK_SECRET=whsec_test_123 \
STRIPE_EVENT_JSON='{"id":"evt_test","type":"checkout.session.completed","object":"event","data":{"object":{"id":"cs_test"}}}' \
bash scripts/replay-stripe-webhook.sh
Output contract
- Prints payload event id/type when available
- Logs each replay attempt: status code + elapsed milliseconds
- Exit
0if all attempts pass success criteria - Exit
1if any attempt fails or inputs are invalid
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-daniellummis-stripe-webhook-replay-lab": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
github-actions-recovery-latency-audit
Measure GitHub Actions failure recovery latency and unresolved incident age by workflow group.
github-actions-cache-hardening-audit
Audit GitHub Actions workflow cache usage for poisoning, keying, and secret-path risks.
render-env-guard
Preflight-check Render service environment variables before deploys; catches missing keys and placeholder/template values that commonly break production rollouts.
github-actions-trigger-health-audit
Audit GitHub Actions run health by trigger event and workflow so flaky or noisy automation sources are easy to prioritize.
github-actions-run-gap-audit
Detect GitHub Actions workflow groups that stopped running on their normal cadence using median run intervals and current inactivity gap.