dodopayments-checkout
Version:
A TypeScript library for embedding Dodo Payments checkout (overlay and inline).
30 lines (29 loc) • 903 B
TypeScript
/**
* 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;
export declare function validateCheckoutUrl(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;
/**
* Validates checkout open options based on the current configuration
*/
export declare function validateOpenOptions(options: any, displayType?: string): void;