Alokai

mountPaymentElement

Method mounting an Adyen drop-in in the specified DOM element. It's recommended to follow Alokai's documentation to obtain already working configuration object to be passed to the method.

The method takes available payment methods, stored payment methods, and commercetools payment object created by the getPaymentMethods method, creates an AdyenCheckout instance using it. Then it mounts the drop-in component in specified DOM element.

Signature

export declare function mountPaymentElement(
	props: MountPaymentElementProperties
): Promise<MountPaymentElementResult>;

Parameters

NameRequiredTypeDescription
propsRequiredMountPaymentElementPropertiesParameter object which can be used with this method. Refer to its type definition to learn about possible properties.

Returns

Returns an instance of Core class, also known as Checkout or AdyenCheckout, and Drop-in component.

Referenced Types

On this page