@bates-solutions/stripe API Reference - v2.2.1
    Preparing search index...

    Interface LambdaWebhookConfig

    Configuration for Lambda webhook handling.

    interface LambdaWebhookConfig {
        corsHeaders?: Record<string, string>;
        handlers: LambdaWebhookHandlers;
        logger?: false | WebhookLogger;
        onUnhandledEvent?: (
            event: Event,
            context: WebhookEventContext,
        ) => void | Promise<void>;
        signingSecret: string;
        tolerance?: number;
    }

    Hierarchy (View Summary)

    Index
    corsHeaders?: Record<string, string>

    Custom CORS headers (merged with defaults)

    Event handlers by type

    logger?: false | WebhookLogger

    Logger instance (defaults to console); pass false to disable

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

    Callback for events with no registered handler

    signingSecret: string

    Stripe webhook signing secret (whsec_…)

    tolerance?: number

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

    300