Set default payment card
Overview
The default digital card is the card your digital wallet application shows first during contactless payment.
The end user can keep the default digital card or switch cards from your UI before they confirm the payment.
For payment UX options, see Contactless payment.
SDK integration
Call DigitalCard.setDefault() on the DigitalCard you want to set as default.
The following example sets the default digital card:
func setDefaultCard(digitalCard: DigitalCard) async {
do {
_ = try await digitalCard.setDefault()
} catch {
// Handle errors.
}
}Last updated
Was this helpful?