Skip to content

ConfirmHostedCardPaymentData

The hosted card form holds the card, the checkout already fixes the method, and the provider takes no customer details or metadata, so this takes only the element.

export interface ConfirmHostedCardPaymentData
NameTypeDescription
elementHostedCardElementFrom elements.create("hostedCard"), for this transaction’s checkout.
signal?AbortSignalAbandons the confirm before the form is sent. Once sent, the browser leaves for the customer’s bank.