---
title: openPaymentSetup()
framework: passkit
role: symbol
role_heading: Instance Method
path: passkit/pkpasslibrary/openpaymentsetup()
---

# openPaymentSetup()

Opens the user interface to set up credit cards for Apple Pay.

## Declaration

```swift
func openPaymentSetup()
```

## Discussion

Discussion Use this method to move users to the interface for adding credit cards. This method transfers control to the Wallet app on iPhone or to the Settings app on iPad. For devices that don’t support Apple Pay, this method does nothing.
