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

# init(errors:paymentSummaryItems:shippingMethods:)

Creates a shipping contact update with your specified payment summary items and shipping methods.

## Declaration

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

## Parameters

- `errors`: An array of errors in the shipping contact information 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.
- `shippingMethods`: An array of shipping methods.

## Discussion

Discussion Use the errors array to specify any errors in the shipping method that the user must resolve. For more information on creating user errors, see PKPaymentError.
