Class

SKReceiptRefreshRequest

A request to refresh the receipt, which represents the user's transactions with your app.

Declaration

class SKReceiptRefreshRequest : SKRequest

Overview

Use this API to request a new receipt if the receipt is invalid or missing. In the sandbox environment, you can request a receipt with any combination of properties to test the state transitions related to Volume Purchase Plan receipts.

Topics

Working with Receipt Refresh Requests

init(receiptProperties: [String : Any]?)

Initializes a receipt refresh request with optional properties.

var receiptProperties: [String : Any]?

The properties of the receipt.

Receipt Property Keys

let SKReceiptPropertyIsExpired: String

A key whose value is an instance of NSNumber interpreted as a Boolean value, indicating whether the receipt is expired.

let SKReceiptPropertyIsRevoked: String

A key whose value is an instance of NSNumber interpreted as a Boolean value, indicating whether the receipt has been revoked.

let SKReceiptPropertyIsVolumePurchase: String

A key whose value is an instance of NSNumber interpreted as a Boolean value, indicating whether the receipt is a Volume Purchase Plan receipt.

Relationships

Inherits From

Conforms To

See Also

App Receipt Validation

func SKTerminateForInvalidReceipt()

Terminates an app if the license to use the app has expired.