Skip to content

ConfirmCardPaymentData

A card that needs 3-D Secure always navigates the browser to the customer’s bank. Your page never holds the card, so it cannot do that step itself.

export interface ConfirmCardPaymentData extends ConfirmDataBase
NameTypeDescription
elementCardElementThe card element holding the card.
customer?CustomerDetailsThe customer paying.
metadata?Record<string, string>Sent with the payment and echoed back on transaction.metadata. Stored against the transaction, so not a place for anything sensitive.
paymentMethodCode?stringOverride the payment method code, such as PZW211 for EcoCash USD. Leave it unset: the SDK picks it from the card’s brand, or from the element’s provider and the transaction’s currency.
signal?AbortSignalAbandons the confirm. Resolves with an outcome_unknown error rather than throwing: a payment already sent cannot be recalled.