---
title: PKPaymentRequestCouponCodeUpdate
framework: passkit
role: symbol
role_heading: Class
path: passkit/pkpaymentrequestcouponcodeupdate
---

# PKPaymentRequestCouponCodeUpdate

An object that updates the payment request after the coupon code changes.

## Declaration

```swift
class PKPaymentRequestCouponCodeUpdate
```

## Overview

Overview This is the handler for paymentAuthorizationController(_:didChangeCouponCode:handler:) and paymentAuthorizationViewController(_:didChangeCouponCode:handler:). Use this object to update the summary items to reflect the change in the coupon code. note: A coupon code error doesn’t block payment authorization.

## Topics

### Creating a payment coupon update object

- [init(errors:paymentSummaryItems:shippingMethods:)](passkit/pkpaymentrequestcouponcodeupdate/init(errors:paymentsummaryitems:shippingmethods:).md)

### Reading errors

- [errors](passkit/pkpaymentrequestcouponcodeupdate/errors.md)

## Relationships

### Inherits From

- [PKPaymentRequestUpdate](passkit/pkpaymentrequestupdate.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Payment sheet updates

- [PKPaymentRequestMerchantSessionUpdate](passkit/pkpaymentrequestmerchantsessionupdate.md)
- [PKPaymentRequestPaymentMethodUpdate](passkit/pkpaymentrequestpaymentmethodupdate.md)
- [PKPaymentRequestShippingContactUpdate](passkit/pkpaymentrequestshippingcontactupdate.md)
- [PKPaymentRequestShippingMethodUpdate](passkit/pkpaymentrequestshippingmethodupdate.md)
- [PKPaymentRequestUpdate](passkit/pkpaymentrequestupdate.md)
