---
title: "init(paymentButtonType:paymentButtonStyle:)"
framework: passkit
role: symbol
role_heading: Initializer
path: "passkit/pkpaymentbutton/init(paymentbuttontype:paymentbuttonstyle:)"
---

# init(paymentButtonType:paymentButtonStyle:)

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

## Declaration

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

## Parameters

- `type`: The button’s content. For a complete list of button types, see doc://com.apple.passkit/documentation/PassKit/PKPaymentButtonType.
- `style`: The button’s appearance. For a complete list of button styles, see doc://com.apple.passkit/documentation/PassKit/PKPaymentButtonStyle.

## Return Value

Return Value Returns a PKPaymentButton instance with the specified type and style.
