Presents a sheet that prompts the user to authorize a payment request.
On This Page
class PKPaymentAuthorizationController : NSObject
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.
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.
var delegate: PKPaymentAuthorizationControllerDelegate?
The controller’s delegate.
Methods that let you respond to user interactions with your payment authorization controller.
func present(completion: ((Bool) -> Void)?)
Presents the payment sheet modally over your app.
func dismiss(completion: (() -> Void)?)
Dismisses the payment sheet.
Initializes and returns a payment authorization controller.
Prompts the user to authorize a payment request.
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.