Instance Method

initWithPaymentButtonType:paymentButtonStyle:

Initializes a new payment button.

Declaration

- (instancetype)initWithPaymentButtonType:(PKPaymentButtonType)type paymentButtonStyle:(PKPaymentButtonStyle)style;

Parameters

type

The button’s content. For a complete list of button types, see PKPaymentButtonType.

style

The button’s appearance. For a complete list of button styles, see PKPaymentButtonStyle.

Return Value

Returns a PKPaymentButton instance with the specified type and style.

See Also

Creating Payment Buttons

+ buttonWithType:style:

Returns a button instance with the Apple Pay logo.