Receive events in your webhook endpoint
Listen for events so your integration can react when something happens in your account, like a successful payment or a refund.
Verify the signature before you trust the event. Use the raw request body, not the parsed JSON. Return a 2xx status quickly, then do the work in the background.
const event = payments.webhooks.verify( rawBody, req.headers["payments-signature"], secret )
›_
OpenCodeIn the bar
ChatGPTIn the bar
CursorOpens Cursor
PerplexityOpens Perplexity



