Protocol

PKPaymentAuthorizationViewControllerDelegate

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

Declaration

@protocol PKPaymentAuthorizationViewControllerDelegate

Overview

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

The payment authorization view 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 view controller to proceed with the next step in the authorization process.

There is one exception to this step-by-step procedure: The pay authorization view controller calls the paymentAuthorizationViewControllerDidFinish: method as soon as the user cancels a payment without authorizing a payment request, or when a payment is canceled after timing out. The controller can call this method at any time.

Topics

Working with Authorization

- paymentAuthorizationViewControllerWillAuthorizePayment:

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

- paymentAuthorizationViewController:didAuthorizePayment:handler:

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

- paymentAuthorizationViewController:didAuthorizePayment:completion:

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

Deprecated
- paymentAuthorizationViewControllerDidFinish:

Tells the delegate that payment authorization finished.

Required.

- paymentAuthorizationViewController:didSelectPaymentMethod:handler:

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

- paymentAuthorizationViewController:didSelectPaymentMethod:completion:

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

Deprecated

Working with Shipping Information

- paymentAuthorizationViewController:didSelectShippingContact:handler:

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

- paymentAuthorizationViewController:didSelectShippingContact:completion:

Tells the delegate that the user selected a shipping address.

Deprecated
- paymentAuthorizationViewController:didSelectShippingMethod:handler:

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

- paymentAuthorizationViewController:didSelectShippingMethod:completion:

Tells the delegate that the user selected a shipping method.

Deprecated

Deprecated

- paymentAuthorizationViewController:didSelectShippingAddress:completion:

Tells the delegate that the user selected a shipping address.

Deprecated

Relationships

Inherits From

See Also

Handling User Interactions

delegate

The view controller’s delegate.

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