absolutepay (Node SDK) - v0.7.1
    Preparing search index...

    Function signRequest

    • Compute the signature headers for one request. The SDK calls this automatically for every request when a signingSecret is configured — call it directly only if you are building your own transport.

      A fresh timestamp and nonce are generated on each call, so signatures are single-use.

      Parameters

      • secret: string

        The app's request-signing secret (apisign_…). Server-side only.

      • method: string

        HTTP method (e.g. "GET", "POST").

      • path: string

        Request path INCLUDING query string, exactly as it will be sent.

      • body: string

        Raw request body string; pass "" for requests without a body.

      Returns SignatureHeaders

      The SignatureHeaders to merge into the outgoing request headers.