<!--
{
  "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/PKPaymentRequestPaymentMethodUpdate/init(errors:paymentSummaryItems:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "PassKit (Apple Pay and Wallet)"
    ],
    "preciseIdentifier" : "c:objc(cs)PKPaymentRequestPaymentMethodUpdate(im)initWithErrors:paymentSummaryItems:"
  },
  "title" : "init(errors:paymentSummaryItems:)"
}
-->

# init(errors:paymentSummaryItems:)

Creates a payment-method update with your specified payment summary items.

```
init(errors: [any Error]?, paymentSummaryItems: [PKPaymentSummaryItem])
```

## Parameters

`errors`

An array of errors in the selected payment-method that the user must resolve.

`paymentSummaryItems`

An array of summary items that include any changes due to fees or credit card surcharges associated with the payment method.

## Discussion

Use the `errors` array to specify any errors in the payment method that the user must resolve. For more information on creating user errors, see [`PKPaymentError`](/documentation/PassKit/PKPaymentError).

---

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)