CORE CONCEPTS
Webhooks
Fluxo sends webhook events to your endpoint whenever something happens in your account. Verify each request’s signature before trusting it.
EVENT
DESCRIPTION
payment.succeeded
A payment was captured successfully.
payout.paid
A payout reached the recipient.
card.authorization
A card authorization needs a decision.
dispute.created
A customer disputed a payment.
webhook.js
COPY
const event = fluxo.webhooks.verify(
req.body,
req.headers[ʺfluxo-signatureʺ],
process.env.FLUXO_WEBHOOK_SECRET,
);