function signedTestWebhook
signedTestWebhook(
listing: unknown,
sign: (payload: string) => Promise<string>,
): Promise<SignedTestWebhook>

Build a test webhook delivery: JSON-encode the event, sign it with the provider's own signing rule, and return the payload/signature pair a test can POST to the webhook route. Each provider supplies only sign.

Parameters

listing: unknown
sign: (payload: string) => Promise<string>

Return Type

Usage

import { signedTestWebhook } from "doc.ts";