Record paid orders in a Next.js route handler
A practical Next.js App Router pattern for sending one paid-order event to Butters after a verified payment webhook, with duplicate-delivery and failure handling.
4 articles tagged Webhooks.
A practical Next.js App Router pattern for sending one paid-order event to Butters after a verified payment webhook, with duplicate-delivery and failure handling.
Forms, routers, CI and payment tools can all call a URL when something happens. Here is how to point them at a Butters incoming webhook, why pasting the URL straight into Stripe gives you a doorbell rather than an event, and the recipes that work instead.
Not everything can hold an API key, and not everyone lives in ntfy. Incoming webhooks turn any URL call into an event, and outgoing webhooks and web push send the events that matter to Slack, Discord, your own backend, or your phone.
An outgoing webhook lets anyone point our server at any URL. Here is how Butters signs JSON deliveries so your receiver can trust them, how to verify one in Node or Python, and why the delivery code refuses private addresses and never follows a redirect.