Webhook-Driven State
Webhook-Driven State
Trust signed webhooks for durable payment state transitions
Webhook-Driven State
Invoice creation tells you that a payment can happen. Webhooks tell you that it did happen.
That distinction matters because payment settlement is asynchronous.
Your app should treat signed webhook deliveries as the durable trigger for local state transitions such as:
Polling public invoice status can help the client understand progress, but webhook delivery is the right place to finalize merchant-side state.
The practical rule is: verify first, then mutate state.
This keeps fulfillment and entitlements tied to a trustworthy, replay-safe event stream.