One Logo Pool Ball
PassKit · IOS API REFERENCE

PKPaymentButton

class · iOS 8.3+ · SDK 27.1

class PKPaymentButton

Members (4)

init · iOS 9.0+

init

TypeScript
static initPaymentButtonTypePaymentButtonStyle(type: PKPaymentButtonType, style: PKPaymentButtonStyle): Promise<PKPaymentButton>
Swift declaration
init(paymentButtonType type: PKPaymentButtonType, paymentButtonStyle style: PKPaymentButtonStyle)
init · iOS 26.0+

init

TypeScript
static initTypeStyleDisableCardArt(type: PKPaymentButtonType, style: PKPaymentButtonStyle, disableCardArt: boolean): Promise<PKPaymentButton>
Swift declaration
convenience init(type: PKPaymentButtonType, style: PKPaymentButtonStyle, disableCardArt: Bool)
get · iOS 12.0+

cornerRadius

TypeScript
get cornerRadius(): Promise<number>
Swift declaration
var cornerRadius: CGFloat { get set }
set · iOS 12.0+

cornerRadius

TypeScript
setCornerRadius(value: number): Promise<void>
Swift declaration
var cornerRadius: CGFloat { get set }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

PKPaymentButton.init()

inherited init: cannot prove legal (class declares 3 custom initializers)

All PassKit types →