Skip to content

BasePaymentSchema

const BasePaymentSchema: ZodObject<{ amount: ZodNumber; callbackUrl: ZodOptional<ZodString>; currency: ZodNativeEnum<typeof Currency>; description: ZodOptional<ZodString>; email: ZodString; metadata: ZodOptional<ZodRecord<ZodString, ZodAny>>; reference: ZodOptional<ZodString>; }, "strip", ZodTypeAny, { amount: number; callbackUrl?: string; currency: Currency; description?: string; email: string; metadata?: Record<string, any>; reference?: string; }, { amount: number; callbackUrl?: string; currency: Currency; description?: string; email: string; metadata?: Record<string, any>; reference?: string; }>

Defined in: packages/node/src/core/schemas.ts:8

Base schema for initiating a payment across all Voltax providers. This provides consistency across providers while allowing each to extend with their own options.