The button instance returned by a NativePaymentMethodManager's createButton function.

render(containerId: string, options: HeadlessButtonRenderOptions) => Promise<void>

Render the button inside a container with the given ID and options.

styleRecord<string, unknown>

The style options for the button.

setDisabled(disabled: boolean) => Promise<void>

Set the disabled state of the button.

clean() => void

Remove the button from the DOM.

focus() => void

Set focus on the button.

blur() => void

Remove focus from the button.

addEventListener(event: EventTypes, callback: EventListener) => void

Add an event listener to the button.

EventTypes"blur" | "change" | "click" | "close" | "error" | "focus"

EventListener(event?: Event) => void