Class

PKPaymentAuthorizationViewController

Prompts the user to authorize a payment request.

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()

Returns whether the user can make payments.

class func canMakePayments(usingNetworks: [PKPaymentNetwork])

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

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

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.