---
title: requirePasswordForPurchases
framework: managedsettings
role: symbol
role_heading: Instance Property
path: managedsettings/appstoresettings/requirepasswordforpurchases-swift.property
---

# requirePasswordForPurchases

A Boolean value that indicates whether to require the user’s password to make App Store transactions.

## Declaration

```swift
var requirePasswordForPurchases: Bool? { get set }
```

## Discussion

Discussion Specify true to require the user’s password for each transaction. The value is nil if your app doesn’t configure this setting.

## See Also

### Requiring a password

- [requirePasswordForPurchases](managedsettings/appstoresettings/requirepasswordforpurchases-swift.type.property.md)
