One Logo Pool Ball
AppIntents · IOS API REFERENCE

IntentPaymentMethod

struct · iOS 16.0+ · SDK 27.1

struct IntentPaymentMethod

Information 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.

Members (8)

get · iOS 16.0+

paymentType

TypeScript
get paymentType(): IntentPaymentMethod_PaymentType
Swift declaration
var paymentType: IntentPaymentMethod.PaymentType { get }

The kind of payment method, such as a credit card or bank account

get · iOS 16.0+

identificationHint

TypeScript
get identificationHint(): (string) | null
Swift declaration
var 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 · iOS 16.0+

displayRepresentation

TypeScript
get displayRepresentation(): DisplayRepresentation
Swift declaration
var displayRepresentation: DisplayRepresentation { get }

The visual elements to display when presenting an instance of the type.

get · iOS 16.0+

typeDisplayRepresentation

TypeScript
static get typeDisplayRepresentation(): TypeDisplayRepresentation
Swift declaration
static var typeDisplayRepresentation: TypeDisplayRepresentation { get }

A short, localized, human-readable name for the type.

get · iOS 16.0+

defaultResolverSpecification

TypeScript
static get defaultResolverSpecification(): EmptyResolverSpecification<IntentPaymentMethod>
Swift declaration
static var defaultResolverSpecification: EmptyResolverSpecification<IntentPaymentMethod> { get }
get · iOS 16.0+

icon

TypeScript
get icon(): (DisplayRepresentation_Image) | null
Swift declaration
var icon: DisplayRepresentation.Image? { get }

The icon or image representing this payment method

get · iOS 16.0+

name

TypeScript
get name(): (string) | null
Swift declaration
var name: String? { get }

The user-visible name of the payment method

init · iOS 16.0+

init

TypeScript
static init(type: IntentPaymentMethod_PaymentType, name?: (_Foundation_LocalizedStringResource) | null, identificationHint?: (string) | null, icon?: (DisplayRepresentation_Image) | null): IntentPaymentMethod
Swift declaration
init(type: IntentPaymentMethod.PaymentType, name: LocalizedStringResource? = nil, identificationHint: String? = nil, icon: DisplayRepresentation.Image? = nil)

Skipped declarations

No declarations were skipped in this snapshot.

All AppIntents types →