<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PassKit",
  "identifier" : "/documentation/PassKit/PKPaymentButton/init(paymentButtonType:paymentButtonStyle:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "PassKit (Apple Pay and Wallet)"
    ],
    "preciseIdentifier" : "c:objc(cs)PKPaymentButton(im)initWithPaymentButtonType:paymentButtonStyle:"
  },
  "title" : "init(paymentButtonType:paymentButtonStyle:)"
}
-->

# init(paymentButtonType:paymentButtonStyle:)

Creates a new payment button with the specified type and style.

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

## Parameters

`type`

The button’s content. For a complete list of button types, see [`PKPaymentButtonType`](/documentation/PassKit/PKPaymentButtonType).

`style`

The button’s appearance. For a complete list of button styles, see [`PKPaymentButtonStyle`](/documentation/PassKit/PKPaymentButtonStyle).

## Return Value

Returns a `PKPaymentButton` instance with the specified type and style.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)