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
| Name | Required | Type | Description |
|---|---|---|---|
adyenConfiguration | Optional | 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; } | 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. |
attemptAuthentication | Optional | boolean | |
dropinConfiguration | Optional | Omit<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. |
paymentDOMElement | Required | string | HTMLElement | The DOM element where the Payment Element will be mounted. |
session | Required | Session | The session object returned by the createSession method. |
Referenced Types
CoreConfigurationPaymentMethodsConfigurationUIElement- PaymentDetailsResult
DropinComponentProps- PaymentResult
- Session