Contents

PKPaymentButtonType.setUp

An Apple Pay button useful for prompting the user to set up a card.

Declaration

case setUp

Discussion

This button looks like:

[Image]

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).

For design guidance, see Human Interface Guidelines > Apple Pay > Buttons and Marks.

See Also

Payment button types