UNPKG

dodopayments-checkout

Version:

A TypeScript library for embedding Dodo Payments overlay checkout.

25 lines (24 loc) 674 B
/** * Validation functions for checkout parameters */ import { CheckoutConfig } from './types'; /** * Validates checkout configuration */ export declare function validateConfig(config: CheckoutConfig): void; /** * Validates redirect URL format and length */ export declare function validateRedirectUrl(url: string): void; /** * Validates payment URL format and length */ export declare function validatePaymentLink(url: string): void; /** * Validates product ID format and length */ export declare function validateProductId(id: string): void; /** * Validates payment link ID format and length */ export declare function validatePaymentLinkId(id: string): void;