paymentType
TypeScriptget paymentType(): IntentPaymentMethod_PaymentTypeSwift declarationvar paymentType: IntentPaymentMethod.PaymentType { get }The kind of payment method, such as a credit card or bank account
struct · iOS 16.0+ · SDK 27.1
struct IntentPaymentMethodInformation about a form of payment supported by your app. An `IntentPaymentMethod` type describes a way someone pays for goods and services. This type contains information you can display in your interface to convey the payment type to people. Specifically, it stores the name of the payment service and an icon for any related brand information. Typical payment methods include credit cards and bank accounts.
get paymentType(): IntentPaymentMethod_PaymentTypeSwift declarationvar paymentType: IntentPaymentMethod.PaymentType { get }The kind of payment method, such as a credit card or bank account
get identificationHint(): (string) | nullSwift declarationvar identificationHint: String? { get }A hint making it easier for the user to identify the payment method among others of similar name or type, such as the last several digits of a credit card number
get displayRepresentation(): DisplayRepresentationSwift declarationvar displayRepresentation: DisplayRepresentation { get }The visual elements to display when presenting an instance of the type.
static get typeDisplayRepresentation(): TypeDisplayRepresentationSwift declarationstatic var typeDisplayRepresentation: TypeDisplayRepresentation { get }A short, localized, human-readable name for the type.
static get defaultResolverSpecification(): EmptyResolverSpecification<IntentPaymentMethod>Swift declarationstatic var defaultResolverSpecification: EmptyResolverSpecification<IntentPaymentMethod> { get }get icon(): (DisplayRepresentation_Image) | nullSwift declarationvar icon: DisplayRepresentation.Image? { get }The icon or image representing this payment method
get name(): (string) | nullSwift declarationvar name: String? { get }The user-visible name of the payment method
static init(type: IntentPaymentMethod_PaymentType, name?: (_Foundation_LocalizedStringResource) | null, identificationHint?: (string) | null, icon?: (DisplayRepresentation_Image) | null): IntentPaymentMethodSwift declarationinit(type: IntentPaymentMethod.PaymentType, name: LocalizedStringResource? = nil, identificationHint: String? = nil, icon: DisplayRepresentation.Image? = nil)No declarations were skipped in this snapshot.