O'Reilly logo

Apple Pay Essentials by Ernest Bruce

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Payment sheet user event protocol

This section describes the protocol used by the payment sheet to communicate with its delegate.

The PKPaymentAuthorizationViewControllerDelegate protocol

The PKPaymentAuthorizationViewControllerDelegate protocol specifies the set of methods that the payment sheet uses to communicate events to its delegate (which you can implement to respond to calls to these methods). The following sections identify the actions that the user can perform in the payment sheet and the delegate methods called when the user performs them.

The user chooses a payment card

The user can switch payment cards in the payment sheet (that is, if the user added more than one payment card to Apple Pay on the device).

-paymentAuthorizationViewController:didSelectPaymentMethod: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required