A request to verify details for a contactless payment card.
Create a `PaymentCardVerificationRequest` object to verify details of a person's
payment card before performing a transaction with that card. For example, you
might use a verification request to make sure the person's card supports a
specific currency. After creating a request object, pass it to the
``PaymentCardReaderSession/readPaymentCard(_:)-hr97`` or
``PaymentCardReaderSession/readPaymentCard(_:vasRequest:stopOnVASResult:)``
method of your session to read the card details.
init(currencyCode: String, for reason: PaymentCardVerificationRequest.Reason = .other)
Creates a new verification request using the specified currency and reason information.
- Parameters:
- currencyCode: The ISO 4217 code for the requested currency type. Specify the
currency you intend to verify. If you specify an empty string, the system throws
``PaymentCardReaderSession/ReadError/invalidCurrencyCode``.
- reason: The reason for the verification request. Based on the reason
you select, the system displays an appropriate message in the system UI
to inform the user about the purpose of the verification process.
get · iOS 15.4+
currencyCode
TypeScript
get currencyCode(): string
Swift declaration
let currencyCode: String
The ISO 4217 code that indicates the currency type.
get · iOS 15.4+
verificationReason
TypeScript
get verificationReason(): PaymentCardVerificationRequest_Reason
Swift declaration
let verificationReason: PaymentCardVerificationRequest.Reason
The reason you asked to verify someone's card.
The system uses the supplied reason to display an appropriate message
in the system UI about why they need to present their card.
get · iOS 17.0+
userInterfaceLanguage
TypeScript
get userInterfaceLanguage(): (_Foundation_Locale_Language) | null
Swift declaration
var userInterfaceLanguage: Locale.Language?
The language to use when localizing the user interface.
Setting this attribute only affects customer facing elements, screen elements, or audio targeted at
the merchant (device owner) remains set to the language defined in the system settings.
When you set this option to `nil`, the framework uses the person's preferred language defined in System Settings.
set · iOS 17.0+
userInterfaceLanguage
TypeScript
set userInterfaceLanguage(value: (_Foundation_Locale_Language) | null)
Swift declaration
var userInterfaceLanguage: Locale.Language?
The language to use when localizing the user interface.
Setting this attribute only affects customer facing elements, screen elements, or audio targeted at
the merchant (device owner) remains set to the language defined in the system settings.
When you set this option to `nil`, the framework uses the person's preferred language defined in System Settings.