Class

PKPaymentAuthorizationController

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

Declaration

@interface PKPaymentAuthorizationController : NSObject

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

+ canMakePayments

Returns whether the user can make payments.

+ canMakePaymentsUsingNetworks:

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

+ canMakePaymentsUsingNetworks:capabilities:

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

Handling User Interactions

delegate

The controller’s delegate.

PKPaymentAuthorizationControllerDelegate

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

- presentWithCompletion:

Presents the payment sheet modally over your app.

- dismissWithCompletion:

Dismisses the payment sheet.

Creating a Payment Authorization Controller

- initWithPaymentRequest:

Initializes and returns a payment authorization controller.

Relationships

Inherits From

See Also

Apple Pay Availability

PKPaymentAuthorizationViewController

Prompts the user to authorize a payment request.