<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 11.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INPaymentMethod/init(type:name:identificationHint:icon:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(cs)INPaymentMethod(im)initWithType:name:identificationHint:icon:"
  },
  "title" : "init(type:name:identificationHint:icon:)"
}
-->

# init(type:name:identificationHint:icon:)

Initializes the payment method object with the specified type and descriptive information.

```
init(type: INPaymentMethodType, name: String?, identificationHint: String?, icon: INImage?)
```

## Parameters

`type`

The payment method type. For a list of possible values, see [`INPaymentMethodType`](/documentation/Intents/INPaymentMethodType).

`name`

The name of the payment method. For a branded credit card, you might specify the specific brand name of the card. If the user provides you with payment information, such as credit card information, you can specify the name that the user assigned to that payment method or whatever descriptive string your company assigned to it.

`identificationHint`

Additional information that when combined with the `name` parameter helps you identify the payment method. You can use identification hints to help differentiate payment methods with similar names. For example, if the user has two credit cards of the same type, you might use this parameter to specify the last four digits of the credit card.

`icon`

An image that visually represents the payment method. For payment methods with an associated brand, use the image associated with the brand.

## Return Value

An initialized payment method object.

## Discussion

This method stores copies of the `name`, `identificationHint`, and `icon` parameters that you provide.

Don’t use this method to create payment method objects for Apple Pay. Instead, use the [`applePay()`](/documentation/Intents/INPaymentMethod/applePay()) to obtain the correct payment method object.

---

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)