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

@interface 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

Creating Payment Buttons

+ buttonWithType:style:

Returns a button instance with the Apple Pay logo.

- initWithPaymentButtonType:paymentButtonStyle:

Initializes a new payment button.

Configuring the Appearance

PKPaymentButtonType

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

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.

Relationships

Inherits From

See Also