Alokai

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

NameRequiredTypeDescription
adyenConfigurationRequiredCoreConfigurationAn object containing the configuration that will be passed to the AdyenCheckout when creating it's instance. You can read more about available properties here.
countryCodeRequiredstringThe shopper's country code. A valid value is an ISO two-character country code (e.g. 'NL'). Required in Adyen Web v6.
dropinConfigurationOptionalPartial<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.
getPaymentMethodsResponseRequiredGetPaymentMethodsResponseThe session object returned by the createSession method.
localeRequiredstring
orderOptionalMakePaymentResponse["order"]
paymentDOMElementRequiredstring | HTMLElementThe DOM element where the Payment Element will be mounted.

Referenced Types

  • CoreConfiguration
  • DropinComponentProps
  • GetPaymentMethodsResponse
  • MakePaymentResponse

On this page