Beignet API reference
    Preparing search index...

    Interface StripeWebhookClient

    Stripe SDK webhook surface used by this integration. Supplying this in tests avoids constructing a real Stripe client.

    interface StripeWebhookClient {
        webhooks: {
            constructEvent(
                payload: string | Buffer<ArrayBufferLike>,
                header: string | Buffer<ArrayBufferLike> | string[],
                secret: string,
                tolerance?: number,
            ): Event;
            constructEventAsync?(
                payload: string | Buffer<ArrayBufferLike>,
                header: string | Buffer<ArrayBufferLike> | string[],
                secret: string,
                tolerance?: number,
            ): Promise<Event>;
        };
    }
    Index
    webhooks: {
        constructEvent(
            payload: string | Buffer<ArrayBufferLike>,
            header: string | Buffer<ArrayBufferLike> | string[],
            secret: string,
            tolerance?: number,
        ): Event;
        constructEventAsync?(
            payload: string | Buffer<ArrayBufferLike>,
            header: string | Buffer<ArrayBufferLike> | string[],
            secret: string,
            tolerance?: number,
        ): Promise<Event>;
    }