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

    Interface ExpressWebhookOptions

    Options for the Express webhook middleware

    interface ExpressWebhookOptions {
        autoRespond?: boolean;
        handlers: WebhookHandlers;
        notificationUrl?: string;
        path?: string;
        signatureKey: WebhookSignatureKey;
        throwOnInvalidSignature?: boolean;
    }

    Hierarchy (View Summary)

    Index
    autoRespond?: boolean

    Whether to send response automatically

    true
    
    handlers: WebhookHandlers

    Event handlers by type

    notificationUrl?: string

    URL where webhooks are received (for signature verification)

    path?: string

    Path to mount the webhook handler

    '/webhook'
    
    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