@bates-solutions/clover API Reference - v1.3.0
    Preparing search index...

    Interface WebhookConfig

    Configuration for webhook handling.

    interface WebhookConfig {
        handlers: WebhookHandlers;
        signingSecret: string;
        throwOnInvalidSignature?: boolean;
        tolerance?: number;
        verificationCode?: string;
    }

    Hierarchy (View Summary)

    Index
    handlers: WebhookHandlers

    Event handlers by type

    signingSecret: string

    Clover webhook signing secret

    throwOnInvalidSignature?: boolean

    Whether a signature verification failure throws (vs returning an error result) in createWebhookProcessor. Either way an invalid signature is never dispatched to handlers.

    true
    
    tolerance?: number

    Maximum allowed difference (seconds) between the signature timestamp and now. Set to 0 to disable the timestamp check.

    300
    
    verificationCode?: string

    The verification code Clover expects echoed during the initial webhook URL handshake. When set, the framework handlers answer the handshake automatically.