<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 11.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 4.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PassKit",
  "identifier" : "/documentation/PassKit/PKPaymentAuthorizationResult/errors",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "PassKit (Apple Pay and Wallet)"
    ],
    "preciseIdentifier" : "c:objc(cs)PKPaymentAuthorizationResult(py)errors"
  },
  "title" : "errors"
}
-->

# errors

List of errors in the Apple Pay sheet.

```
var errors: [any Error]! { get set }
```

## Discussion

If the Apple Pay sheet contains errors, you provide a [`PKPaymentAuthorizationStatus.failure`](/documentation/PassKit/PKPaymentAuthorizationStatus/failure) status to [`PKPaymentAuthorizationResult`](/documentation/PassKit/PKPaymentAuthorizationResult), and include the individual errors in this array. If there are no errors, you provide a [`PKPaymentAuthorizationStatus.success`](/documentation/PassKit/PKPaymentAuthorizationStatus/success) status and leave the error array empty. Errors are of the standard type, <doc://com.apple.documentation/documentation/Foundation/NSError>. To create errors, you can either use the convenience methods found in [`PKPaymentRequest`](/documentation/PassKit/PKPaymentRequest), or create an <doc://com.apple.documentation/documentation/Foundation/NSError> using the domain, error codes, and user info from [`PKPaymentError`](/documentation/PassKit/PKPaymentError).

Add the errors to the array in order of severity, with the most important error first.

---

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)