Class

PKPaymentButton

Provides a button that is used either to trigger payments through Apple Pay or to prompt the user to set up a card.

Declaration

class PKPaymentButton : UIButton

Overview

After creating a PKPaymentButton object, you choose the type and style of button, and the system provides a control with the correct content and appearance. See the Human Interface Guidelines > Apple Pay for more information.

To trigger a payment through Apple Pay in a WatchKit app, use WKInterfacePaymentButton instead.

Topics

Configuring the Appearance

enum PKPaymentButtonType

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

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.

See Also