Webhooks fail silently. Stop finding out from angry customers.
A dead-man’s switch and instant failure alerting engine for Stripe, Shopify, and Medusa. When a payment handler throws 500s or webhook traffic dries up, STACKSTER alerts your team in seconds.
import { NextResponse } from "next/server";
import Stripe from "stripe";
const stripe = new Stripe(process.env.STRIPE_SECRET_KEY!);
const PING_URL = "https://api.stackster.app/p/YOUR_CHECK_UUID";
export async function POST(req: Request) {
const body = await req.text();
const sig = req.headers.get("stripe-signature")!;
try {
const event = stripe.webhooks.constructEvent(
body,
sig,
process.env.STRIPE_WEBHOOK_SECRET!
);
// 1. Process payment / subscription logic here
await handleStripeEvent(event);
// 2. Success: Ping STACKSTER to reset dead-man's timer
fetch(PING_URL, { method: "POST", body: JSON.stringify({ run_id: event.id }) });
return NextResponse.json({ received: true });
} catch (err: any) {
// 3. Immediate Alert: Signal failure node directly to STACKSTER
fetch(`${PING_URL}/fail`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ error: err.message, stack: err.stack }),
});
return NextResponse.json({ error: err.message }, { status: 400 });
}
}Trusted by developers protecting critical payment, checkout, and inventory webhooks
See how STACKSTER guards your webhooks
Select a real-world scenario to simulate how STACKSTER protects against both explicit handler crashes and silent drops.
Webhook Processed (200 OK)
Heartbeat ping registered. Dead-man's timer extended by 60 minutes.
Everything you need for ironclad webhook reliability
Built from the ground up to protect checkout pipelines, e-commerce synchronizations, and subscription events against silent breakage.
Immediate /fail Error Dispatch
Don't wait for a missing heartbeat when you already know an exception occurred. Ping /p/:uuid/fail inside your catch block to notify on-call engineers within 15ms.
Silence & Inactivity Detection
The true dead-man's switch: if webhook traffic unexpectedly drops to zero due to DNS issues, expired certificates, or third-party suspensions, we alert you.
Payload Assertion Rules
Enforce runtime contract checks. Verify that event.type contains 'payment' or customer_id is present. Failed assertions automatically trigger failure alerts.
Zero Extra Webhook Latency
Ping STACKSTER asynchronously with fire-and-forget or edge waitUntil(). Your HTTP 200 response returns to Stripe or Shopify instantly without risk of retry loops.
Latency Degradation Detection
Detect downstream database deadlocks before they cause timeouts. We analyze rolling execution duration and alert if 3 consecutive webhooks exceed baseline by 50%.
Slack, Discord & PagerDuty
Route webhook alerts where your team lives. Broadcast to dedicated Slack/Discord channels, trigger PagerDuty escalation policies, or send custom webhooks.
Predictable pricing for peace of mind
Metered, not unlimited — so the plan that fits your stack is the one that keeps the alerts honest.
All plans include a 14-day trial of Pro features · Cancel anytime
Frequently Asked Questions
Everything you need to know about monitoring Stripe, Shopify, and Medusa webhooks with STACKSTER.

