PayFanout API reference
    Preparing search index...

    Interface StripeJsElementLike

    Structural subset of Stripe.js — injected in tests, loaded from js.stripe.com in browsers.

    interface StripeJsElementLike {
        destroy(): void;
        mount(container: string | HTMLElement): void;
        on(
            event: "change" | "ready" | "loaderror",
            handler: (
                payload?: {
                    complete?: boolean;
                    empty?: boolean;
                    error?: StripeJsErrorLike;
                },
            ) => void,
        ): void;
        unmount(): void;
    }
    Index
    • Parameters

      • event: "change" | "ready" | "loaderror"
      • handler: (
            payload?: {
                complete?: boolean;
                empty?: boolean;
                error?: StripeJsErrorLike;
            },
        ) => void

      Returns void