Enumeration

PKPaymentButtonType

The content of the buttons that can be created using the init(type:style:) method.

Declaration

enum PKPaymentButtonType : Int

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

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 setUp

A button prompting the user to set up a card.

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.

See Also

Configuring the Appearance

enum PKPaymentButtonStyle

The appearance of the buttons that can be created using the init(type:style:) method.

var cornerRadius: CGFloat

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