PayFanout API reference
    Preparing search index...

    Function buildAdyenHmacPayload

    • The eight signed values, colon-joined in Adyen's documented order, with an empty string for any absent field:

      pspReference:originalReference:merchantAccountCode:merchantReference:value:currency:eventCode:success

      value and currency come from the nested amount object. Adyen's instructions join the values with ":" and its own validators escape nothing, so a ":" is refused everywhere except in merchantReference, where it cannot change how the string splits. Returns undefined for an item carrying a ":" elsewhere, or a signed value without its documented type.

      It checks types, not presence: an item missing a value Adyen's webhook schema requires still yields a string, and verifyAdyenWebhook is what refuses such an item (malformed_payload).

      Parameters

      Returns string | undefined