PayFanout API reference
    Preparing search index...

    Function parseWorldlineWebhookEvent

    • One event per delivery, but the envelope is ambiguous in the official material: the webhooks page's example body is an ARRAY while the platform's own webhooks helper JSON-parses a single object. Both single-event shapes are accepted (a one-element array is unwrapped); a multi-event array is rejected (invalid_request) rather than partially processed — silently dropping trailing events is never acceptable.

      Parameters

      • rawBody: string

      Returns Promise<UnifiedWebhookEvent>