createZodVerifier
createZodVerifier<
T>(options):Verifier<T>
Defined in: zod/src/index.ts:432
Create a verifier that validates events using Zod schemas after signature verification
Type Parameters
Section titled “Type Parameters”T extends WebhookEvent
Parameters
Section titled “Parameters”options
Section titled “options”Verifier options
Returns
Section titled “Returns”Verifier<T>
A new verifier that validates events
Example
Section titled “Example”import { createStripeVerifier } from '@kotodayori/stripe';
const registry = new SchemaRegistry() .registerAll({ paymentIntentSucceeded });
const verifier = createZodVerifier({ verifier: createStripeVerifier({ secret: 'whsec_...' }), registry,});