Class

PKAddPaymentPassViewController

Displays an interface that lets users add cards to Apple Pay from within your app.

Declaration

class PKAddPaymentPassViewController : UIViewController

Overview

Topics

Determining if Payment Passes Can Be Added

class func canAddPaymentPass() -> Bool

Returns a Boolean value that indicates whether the app can add cards to Apple Pay.

Working with Add Payment View Controllers

var delegate: PKAddPaymentPassViewControllerDelegate?

The object that acts as the delegate for the add payment view controller.

protocol PKAddPaymentPassViewControllerDelegate

Methods that let the system prompt you for an add payment request, and inform you when a request has succeeded or failed.

Creating an Add-Payment-Pass View Controller

init?(requestConfiguration: PKAddPaymentPassRequestConfiguration, delegate: PKAddPaymentPassViewControllerDelegate?)

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

class PKAddPaymentPassRequestConfiguration

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

See Also

Wallet Availability

class PKAddPassesViewController

Lets your app show a pass and prompt the user to add that pass to the pass library.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software