Initializer

init(paymentButtonType:paymentButtonStyle:)

Initializes a new payment button.

Declaration

init(paymentButtonType type: PKPaymentButtonType, paymentButtonStyle style: PKPaymentButtonStyle)

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.