MountPaymentElementProperties
Properties for mounting Adyen's Drop-in to the DOM.
export interface MountPaymentElementProperties {
adyenConfiguration: CoreConfiguration;
countryCode: string;
dropinConfiguration?: Partial<DropinComponentProps>;
getPaymentMethodsResponse: GetPaymentMethodsResponse;
locale: string;
order?: MakePaymentResponse["order"];
paymentDOMElement: string | HTMLElement;
}Properties
| Name | Required | Type | Description |
|---|---|---|---|
adyenConfiguration | Required | CoreConfiguration | 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. |
countryCode | Required | string | The shopper's country code. A valid value is an ISO two-character country code (e.g. 'NL'). Required in Adyen Web v6. |
dropinConfiguration | Optional | Partial<DropinComponentProps> | 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. |
getPaymentMethodsResponse | Required | GetPaymentMethodsResponse | The session object returned by the createSession method. |
locale | Required | string | |
order | Optional | MakePaymentResponse["order"] | |
paymentDOMElement | Required | string | HTMLElement | The DOM element where the Payment Element will be mounted. |
Referenced Types
CoreConfigurationDropinComponentPropsGetPaymentMethodsResponseMakePaymentResponse