Enumeration

PKPaymentButtonType

The content of the buttons that can be created using the buttonWithType:style: method.

Declaration

typedef enum PKPaymentButtonType : NSInteger {
    ...
} PKPaymentButtonType;

Overview

The button type you use for payments made with Apple Pay can affect the purchasing experience. For information about when to use each type, see the Human Interface Guidelines > Apple Pay.

Before using a specific button type, check that it is available to the iOS version that your app is running on.

Topics

Payment Button Types

PKPaymentButtonTypePlain

A button with the Apple Pay logo only.

PKPaymentButtonTypeBuy

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

PKPaymentButtonTypeSetUp

A button prompting the user to set up a card.

PKPaymentButtonTypeInStore

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

PKPaymentButtonTypeDonate

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

PKPaymentButtonTypeCheckout

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

PKPaymentButtonTypeBook

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

PKPaymentButtonTypeSubscribe

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

See Also

Configuring the Appearance

PKPaymentButtonStyle

The appearance of the buttons that can be created using the buttonWithType:style: method.

cornerRadius

The radius, in points, for the rounded corners on the button.