UNPKG

dodopayments-checkout

Version:

A TypeScript library for embedding Dodo Payments checkout (overlay and inline).

26 lines (25 loc) 1.51 kB
/** * SDK Configuration Constants */ export declare const CHECKOUT_URLS: { readonly test: "https://test.checkout.dodopayments.com"; readonly live: "https://checkout.dodopayments.com"; }; export declare const DODO_SDK_VERSION = "1.1.0"; export declare const DODO_SDK_BASE_URLS: { readonly test: "https://sdk-v2.custom.hs.dodopayments.com"; readonly live: "https://sdk-v2.hs.dodopayments.com"; }; export declare const DODO_SDK_API_URLS: { readonly test: "https://api.custom.hs.dodopayments.com"; readonly live: "https://api.hs.dodopayments.com"; }; export declare const DEFAULT_IFRAME_STYLES: "\n width: 100dvw;\n height: 100dvh;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n border: none;\n background: transparent;\n z-index: 1000;\n"; export declare const INLINE_IFRAME_STYLES: "\n width: 100%;\n height: 0px; \n border: none;\n background: transparent;\n overflow: hidden;\n transition: height 0.2s ease-out;\n"; export declare const INLINE_WALLET_CONTAINER_STYLES: "\n width: 100%;\n max-width: 500px;\n margin: 0 auto;\n padding-left: 5px;\n padding-right: 5px;\n box-sizing: border-box;\n line-height: 0;\n"; export declare const WALLET_ELEMENT_FALLBACK_HEIGHT = 44; export declare const ALLOWED_EVENT_TYPES: Set<string>; export declare const MAX_REDIRECT_URL_LENGTH = 2048; export declare const MAX_PRODUCT_ID_LENGTH = 50; export declare const MAX_PAYMENT_LINK_ID_LENGTH = 10; export declare const MAX_PAYMENT_LINK_LENGTH = 2048;