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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software