Instance Method

initWithRequestConfiguration:delegate:

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

Declaration

- (instancetype)initWithRequestConfiguration:(PKAddPaymentPassRequestConfiguration *)configuration delegate:(id<PKAddPaymentPassViewControllerDelegate>)delegate;

Parameters

configuration

A configuration object that defines the view controller’s appearance.

delegate

The add payment view controller’s delegate.

Return Value

A newly initialized add payment view controller.

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

Contains the configuration data needed to instantiate a new PKAddPaymentPassViewController object.