• Attaches a custom component to the specified CardFormEmbedOptions.target and opens Paytool Client Card Form in an iframe.

    The component handles the iframe's responsiveness internally, starting with height set to 0, waiting for the iframe's DOM tree to render.

    Returns a Promise, that resolves an instance of CardFormEmbed once the iframe's height is determined.

    For additional options, like styling and different ways of attaching listeners, check out the CardFormEmbed class.

    Parameters

    Returns Promise<CardFormEmbed>