Alokai

MountPaymentElementProperties

Properties for mounting Stripe's Payment Element to the DOM.

export interface MountPaymentElementProperties {
	appearance?: Record<string, string>;
	cart: Cart;
	paymentDOMElement?: string | HTMLElement;
}

Properties

NameRequiredTypeDescription
appearanceOptionalRecord<string, string>Payment Element appearance options supported by Stripe's Appearance API.
cartRequiredCartCommercetools cart to mount the Payment Element for.
paymentDOMElementOptionalstring | HTMLElementThe DOM element where the Payment Element will be mounted.

Referenced Types

  • Cart

On this page