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

# init(errors:paymentSummaryItems:shippingMethods:)

Creates a payment coupon update with your specified payment summary items, errors, and shipping methods.

## Declaration

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

## Parameters

- `errors`: An array of errors for the coupon code that the user must resolve.
- `paymentSummaryItems`: An array of summary items that include any changes due to the coupon.
- `shippingMethods`: An array of shipping methods.
