<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 15.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PassKit",
  "identifier" : "/documentation/PassKit/PKDisbursementRequest/disbursementContactInvalidError(withContactField:localizedDescription:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "PassKit (Apple Pay and Wallet)"
    ],
    "preciseIdentifier" : "c:objc(cs)PKDisbursementRequest(cm)disbursementContactInvalidErrorWithContactField:localizedDescription:"
  },
  "title" : "disbursementContactInvalidError(withContactField:localizedDescription:)"
}
-->

# disbursementContactInvalidError(withContactField:localizedDescription:)

Creates a recipient contact error with the supplied field.

```
class func disbursementContactInvalidError(withContactField field: PKContactField, localizedDescription: String?) -> any Error
```

## Parameters

`field`

The [`PKContactField`](/documentation/PassKit/PKContactField) that contains the error.

`localizedDescription`

An optional localized description that the framework displays to the individual.

## Return Value

An <doc://com.apple.documentation/documentation/Foundation/NSError> object.

## Discussion

There’s limited display space available for descriptions, so keep your messages concise.

---

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)