Alokai

MountPaymentElementProperties

Properties for mounting Adyen's Drop-in to the DOM.

export interface MountPaymentElementProperties {
	adyenConfiguration?: Omit<CoreConfiguration, "onAdditionalDetails" | "onOrderFail" | "onOrderSuccess"> & {
        paymentMethodsConfiguration?: PaymentMethodsConfiguration;
        onAdditionalDetails?(state: any, returnUrl?: string, element?: UIElement): Promise<PaymentDetailsResult | undefined>;
        onOrderFail?(paymentResult: any, component: any): any;
        onOrderSuccess?(paymentResult: any, component: any): any;
    };
	attemptAuthentication?: boolean;
	dropinConfiguration?: Omit<Partial<DropinComponentProps>, "onSubmit"> & {
        onSubmit?: (...args: OnSubmitParameters) => Promise<PaymentResult | undefined>;
    };
	paymentDOMElement: string | HTMLElement;
	session: Session;
}

Properties

NameRequiredTypeDescription
adyenConfigurationOptionalOmit<CoreConfiguration, "onAdditionalDetails" | "onOrderFail" | "onOrderSuccess"> & { paymentMethodsConfiguration?: PaymentMethodsConfiguration; onAdditionalDetails?(state: any, returnUrl?: string, element?: UIElement): Promise<PaymentDetailsResult | undefined>; onOrderFail?(paymentResult: any, component: any): any; onOrderSuccess?(paymentResult: any, component: any): any; }An object containing the configuration that will be passed to the AdyenCheckout when creating it's instance. You can read more about available properties here.
attemptAuthenticationOptionalboolean
dropinConfigurationOptionalOmit<Partial<DropinComponentProps>, "onSubmit"> & { onSubmit?: (...args: OnSubmitParameters) => Promise<PaymentResult | undefined>; }An optional object containing the configuration that will be passed to the Drop-in when creating it. You can read more about available properties here.
paymentDOMElementRequiredstring | HTMLElementThe DOM element where the Payment Element will be mounted.
sessionRequiredSessionThe session object returned by the createSession method.

Referenced Types

On this page