Protocol

PKPaymentAuthorizationControllerDelegate

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

Declaration

@protocol PKPaymentAuthorizationControllerDelegate

Overview

The PKPaymentAuthorizationControllerDelegate protocol is implemented by the payment authorization controller’s delegate. You implement this protocol to respond to user interaction with that controller.

In most cases, the payment authorization controller automatically waits for its delegate to finish responding to one method before it calls other delegate methods. You indicate that the delegate is finished with the current method by calling that method’s completion block. This action tells the pay authorization controller to proceed with the next step in the authorization process.

There is one exception to this step-by-step procedure: The pay authorization controller calls the paymentAuthorizationControllerDidFinish: method as soon as the user cancels a payment without authorizing. The controller can call this method at any time.

Topics

Handling User's Payment Method Selection

- paymentAuthorizationController:didSelectPaymentMethod:handler:

Tells the delegate that the payment method has changed and asks for an updated payment request.

- paymentAuthorizationController:didSelectPaymentMethod:completion:

Tells the delegate that the payment method has changed and asks for a list of updated summary items.

Deprecated

Handling User's Changes to Shipping Information

- paymentAuthorizationController:didSelectShippingContact:handler:

Tells the delegate that the user selected a shipping address and asks for an updated payment request.

- paymentAuthorizationController:didSelectShippingContact:completion:

Tells the delegate that the user selected a shipping address.

Deprecated
- paymentAuthorizationController:didSelectShippingMethod:handler:

Tells the delegate that the user selected a shipping method and asks for an updated payment request.

- paymentAuthorizationController:didSelectShippingMethod:completion:

Tells the delegate that the user selected a shipping method.

Deprecated

Handling User's Payment Authorization

- paymentAuthorizationControllerWillAuthorizePayment:

Tells the delegate that the user is authorizing the payment request.

- paymentAuthorizationController:didAuthorizePayment:handler:

Tells the delegate that the user has authorized the payment request and asks for a result.

- paymentAuthorizationController:didAuthorizePayment:completion:

Tells the delegate that the user has authorized the payment request.

Deprecated
- paymentAuthorizationControllerDidFinish:

Tells the delegate that payment authorization has completed.

Required.

Relationships

Inherits From

See Also

Handling User Interactions

delegate

The controller’s delegate.

- presentWithCompletion:

Presents the payment sheet modally over your app.

- dismissWithCompletion:

Dismisses the payment sheet.