---
title: errors
framework: passkit
role: symbol
role_heading: Instance Property
path: passkit/pkpaymentauthorizationresult/errors
---

# errors

List of errors in the Apple Pay sheet.

## Declaration

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

## Discussion

Discussion If the Apple Pay sheet contains errors, you provide a PKPaymentAuthorizationStatus.failure status to PKPaymentAuthorizationResult, and include the individual errors in this array. If there are no errors, you provide a PKPaymentAuthorizationStatus.success status and leave the error array empty. Errors are of the standard type, NSError. To create errors, you can either use the convenience methods found in PKPaymentRequest, or create an NSError using the domain, error codes, and user info from PKPaymentError. Add the errors to the array in order of severity, with the most important error first.

## See Also

### Setting payment authorization status and errors

- [status](passkit/pkpaymentauthorizationresult/status.md)
- [PKPaymentAuthorizationStatus](passkit/pkpaymentauthorizationstatus.md)
