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

    Interface LambdaWebhookConfig

    Configuration for Lambda webhook handling

    interface LambdaWebhookConfig {
        corsHeaders?: Record<string, string>;
        handlers: LambdaWebhookHandlers;
        logger?: false | WebhookLogger;
        notificationUrl: string;
        onUnhandledEvent?: (
            event: WebhookEvent,
            context: WebhookEventContext,
        ) => void | Promise<void>;
        signatureKey: WebhookSignatureKey;
    }
    Index
    corsHeaders?: Record<string, string>

    Custom CORS headers (merged with defaults)

    Event handlers by type

    logger?: false | WebhookLogger

    Logger instance (defaults to console)

    notificationUrl: string

    The exact notification URL registered on the webhook subscription. Required: Square signs notificationUrl + rawBody, so without it no real delivery verifies.

    onUnhandledEvent?: (
        event: WebhookEvent,
        context: WebhookEventContext,
    ) => void | Promise<void>

    Callback for events with no registered handler

    signatureKey: WebhookSignatureKey

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