Contents

SKIncludeConsumableInAppPurchaseHistory

A Boolean value that determines whether StoreKit includes finished consumable In-App Purchases in transaction information.

Discussion

By default, this value is false. When it’s false, StoreKit doesn’t return finished consumables (unless refunded or revoked) in the transaction information from the following APIs:

  • The all sequence in Transaction, which returns the customer’s transaction history for your app

  • The latest(for:) in Transaction, which returns the customer’s most recent transaction for a specific product

  • The latestTransaction in Product, which provides the customer’s most recent transaction for the product

When you set this value to true, StoreKit includes all In-App Purchase transactions — including all finished consumables — in the transaction information when you use the all, latest(for:), and latestTransaction APIs.

See Also

StoreKit