---
title: "init(errors:paymentSummaryItems:)"
framework: passkit
role: symbol
role_heading: Initializer
path: "passkit/pkpaymentrequestpaymentmethodupdate/init(errors:paymentsummaryitems:)"
---

# init(errors:paymentSummaryItems:)

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

## Declaration

```swift
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

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.
