@bates-solutions/squareup API Reference - v3.2.0
    Preparing search index...

    Interface WebhookConfig

    Configuration for webhook handling

    interface WebhookConfig {
        handlers: WebhookHandlers;
        notificationUrl?: string;
        signatureKey: WebhookSignatureKey;
        throwOnInvalidSignature?: boolean;
    }

    Hierarchy (View Summary)

    Index
    handlers: WebhookHandlers

    Event handlers by type

    notificationUrl?: string

    URL where webhooks are received (for signature verification)

    signatureKey: WebhookSignatureKey

    Square webhook signature key, or a list of keys during rotation

    throwOnInvalidSignature?: boolean

    How createWebhookProcessor reports an invalid signature. When true (default) it throws (surfaced as { success: false, error }); when false it returns { success: false, error } without throwing. Either way an invalid signature is never dispatched to handlers.

    true