---
title: "init(receiptProperties:)"
framework: storekit
role: symbol
role_heading: Initializer
path: "storekit/skreceiptrefreshrequest/init(receiptproperties:)"
---

# init(receiptProperties:)

Creates a receipt refresh request with optional properties.

## Declaration

```swift
init(receiptProperties properties: [String : Any]?)
```

## Parameters

- `properties`: In the test environment, the properties that the new receipt is to have. For keys, see Receipt Properties and Keys. In the production environment, set this parameter to nil.

## Mentioned in

Restoring purchased products

## Return Value

Return Value The initialized request.

## Discussion

Discussion In the sandbox environment, you can initialize a receipt with any combination of properties to test the state transitions related to Volume Purchase Plan receipts. Set the properties when you call this initializer.
