---
title: "init(target:action:)"
framework: watchkit
role: symbol
role_heading: Initializer
path: "watchkit/wkinterfacepaymentbutton/init(target:action:)"
---

# init(target:action:)

Creates a payment button for use in SwiftUI.

## Declaration

```swift
init(target: Any?, action: Selector)
```

## Parameters

- `target`: The object whose action method is called.
- `action`: A selector identifying the action method called when the user taps the button.

## Discussion

Discussion When the user taps the button, the system calls the action method on the target. Use this initializer to create an instance that you can wrap in a WKInterfaceObjectRepresentable view. If you aren’t using SwiftUI, create the control by dragging it from the Object library to your storyboard instead.
