Enumeration Case

PKPaymentButtonType.setUp

A button prompting the user to set up a card.

Declaration

case setUp = 2

Discussion

This button looks like:

A button with the text "Set up" and the Apple Pay logo.

You can display this button when the device and parental controls support Apple Pay but the user has not yet added a card. Use the PKPaymentAuthorizationViewController class’s canMakePayments() method to determine whether the device supports Apple Pay. If canMakePayments() returns true, call canMakePayments(usingNetworks:capabilities:) to determine whether the user has added any cards.

As soon as the user taps this button, initiate the process of setting up a new card (for example, by calling the openPaymentSetup() method).

See the Human Interface Guidelines for more information on where to use this button.

See Also

Payment Button Types

case plain

A button with the Apple Pay logo only.

case buy

A button with the text “Buy with” and the Apple Pay logo.

case inStore

A button with the text “Pay with” and the Apple Pay logo.

case donate

A button with the text "Donate with" and the Apple Pay logo.

case checkout

A button with the text “Check out with” and the Apple Pay logo.

case book

A button with the text “Book with” and the Apple Pay logo.

case subscribe

A button with the text “Subscribe with” and the Apple Pay logo.