<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntents",
  "identifier" : "/documentation/AppIntents/IntentPaymentMethod",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "App Intents"
    ],
    "preciseIdentifier" : "s:10AppIntents19IntentPaymentMethodV"
  },
  "title" : "IntentPaymentMethod"
}
-->

# IntentPaymentMethod

Information about a form of payment supported by your app.

```
struct IntentPaymentMethod
```

## Overview

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.

## Topics

### Creating a payment method

[`init(type: IntentPaymentMethod.PaymentType, name: LocalizedStringResource?, identificationHint: String?, icon: DisplayRepresentation.Image?)`](/documentation/AppIntents/IntentPaymentMethod/init(type:name:identificationHint:icon:))

### Getting the payment details

[`var paymentType: IntentPaymentMethod.PaymentType`](/documentation/AppIntents/IntentPaymentMethod/paymentType-swift.property)

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

[`var name: String?`](/documentation/AppIntents/IntentPaymentMethod/name)

The user-visible name of the payment method

[`var identificationHint: String?`](/documentation/AppIntents/IntentPaymentMethod/identificationHint)

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

[`var icon: DisplayRepresentation.Image?`](/documentation/AppIntents/IntentPaymentMethod/icon)

The icon or image representing this payment method

[`enum PaymentType`](/documentation/AppIntents/IntentPaymentMethod/PaymentType-swift.enum)

Constants that describe the available payment options, such as credit cards or bank accounts.

### Type Aliases

[`typealias Specification`](/documentation/AppIntents/IntentPaymentMethod/Specification)

[`typealias UnwrappedType`](/documentation/AppIntents/IntentPaymentMethod/UnwrappedType)

[`typealias ValueType`](/documentation/AppIntents/IntentPaymentMethod/ValueType)

### Type Properties

[`static var defaultResolverSpecification: EmptyResolverSpecification<IntentPaymentMethod>`](/documentation/AppIntents/IntentPaymentMethod/defaultResolverSpecification)

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`IntentValueConvertible`](/documentation/AppIntents/IntentValueConvertible)

[`TypeDisplayRepresentable`](/documentation/AppIntents/TypeDisplayRepresentable)

[`CustomLocalizedStringResourceConvertible`](/documentation/Foundation/CustomLocalizedStringResourceConvertible)

[`IntentValueExpressing`](/documentation/AppIntents/IntentValueExpressing)

[`Copyable`](/documentation/Swift/Copyable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`DisplayRepresentable`](/documentation/AppIntents/DisplayRepresentable)

[`InstanceDisplayRepresentable`](/documentation/AppIntents/InstanceDisplayRepresentable)

[`Escapable`](/documentation/Swift/Escapable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)