Class

PKPaymentAuthorizationViewController

Prompts the user to authorize a payment request.

Declaration

class PKPaymentAuthorizationViewController : UIViewController

Overview

After the user authorizes the payment request for a transaction, the delegate is called with a payment token used to authorize the transaction’s payment.

Topics

Determining Whether the User Can Make Payments

class func canMakePayments() -> Bool

Returns whether the user can make payments.

class func canMakePayments(usingNetworks: [PKPaymentNetwork]) -> Bool

Returns whether the user can make payments through the specified network.

class func canMakePayments(usingNetworks: [PKPaymentNetwork], capabilities: PKMerchantCapability) -> Bool

Returns whether the user can make payments using a card from the specified network with the specified capabilities.

Handling User Interactions

protocol PKPaymentAuthorizationViewControllerDelegate

Methods that let you respond to user interactions with your payment authorization view controller.

Creating a Payment Authorization View Controller

init?(paymentRequest: PKPaymentRequest)

Initializes and returns a payment authorization view controller.

See Also

Apple Pay Availability

class PKPaymentAuthorizationController

Presents a sheet that prompts the user to authorize a payment request.

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