---
title: PKAddPaymentPassRequest
framework: passkit
role: symbol
role_heading: Class
path: passkit/pkaddpaymentpassrequest
---

# PKAddPaymentPassRequest

Contains the card data needed to add a card to Apple Pay.

## Declaration

```swift
class PKAddPaymentPassRequest
```

## Overview

Overview All sensitive data must be encrypted before being assigned to this object. Because the encryption keys vary depending on the server, create PKAddPaymentPassRequest instances only when your PKAddPaymentPassViewControllerDelegate object’s addPaymentPassViewController(_:generateRequestWithCertificateChain:nonce:nonceSignature:completionHandler:) method is called. The required server certificates are provided at that time. important: Adding payment passes requires a special entitlement issued by Apple. Your app must include this entitlement before you can use this class. For more information on requesting this entitlement, see the Card Issuers section at developer.apple.com/apple-pay/.

## Topics

### Creating an add payment pass request

- [init()](passkit/pkaddpaymentpassrequest/init().md)

### Accessing request data

- [activationData](passkit/pkaddpaymentpassrequest/activationdata.md)
- [encryptedPassData](passkit/pkaddpaymentpassrequest/encryptedpassdata.md)
- [ephemeralPublicKey](passkit/pkaddpaymentpassrequest/ephemeralpublickey.md)
- [wrappedKey](passkit/pkaddpaymentpassrequest/wrappedkey.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.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

### Requesting to add payment cards to Apple Pay

- [addPaymentPassViewController(_:generateRequestWithCertificateChain:nonce:nonceSignature:completionHandler:)](passkit/pkaddpaymentpassviewcontrollerdelegate/addpaymentpassviewcontroller(_:generaterequestwithcertificatechain:nonce:noncesignature:completionhandler:).md)
- [addPaymentPassViewController(_:didFinishAdding:error:)](passkit/pkaddpaymentpassviewcontrollerdelegate/addpaymentpassviewcontroller(_:didfinishadding:error:).md)
