---
title: "init(requestConfiguration:delegate:)"
framework: passkit
role: symbol
role_heading: Initializer
path: "passkit/pkaddpaymentpassviewcontroller/init(requestconfiguration:delegate:)"
---

# init(requestConfiguration:delegate:)

Returns an initialized add payment view controller object, using the provided configuration and delegate.

## Declaration

```swift
init?(requestConfiguration configuration: PKAddPaymentPassRequestConfiguration, delegate: (any PKAddPaymentPassViewControllerDelegate)?)
```

## Parameters

- `configuration`: A configuration object that defines the view controller’s appearance.
- `delegate`: The add payment view controller’s delegate.

## Return Value

Return Value A newly initialized add payment view controller.

## Discussion

Discussion Adding payment passes requires a special entitlement issued by Apple. If your app does not include this entitlement, this method returns nil. For more information on requesting this entitlement, see the Card Issuers section on developer.apple.com/apple-pay/.

## See Also

### Creating an add-payment-pass view controller

- [PKAddPaymentPassRequestConfiguration](passkit/pkaddpaymentpassrequestconfiguration.md)
