webhooks
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>;
}
Stripe SDK webhook surface used by this integration. Supplying this in tests avoids constructing a real Stripe client.