NonSubscriptionTransaction

Represents a non-subscription transaction (consumables and non-consumables).

Introduced in 4.10.0. The store property was added in 4.11.0.

Purpose

Provides details about one-time purchases in CustomerInfo, including which store fulfilled the purchase.

Properties

Prop Type
transactionId String
productId String
purchaseDate Date
isConsumable Bool
isRevoked Bool
store ProductStore

Store values

appStore, stripe, paddle, playStore, superwall, custom, other.

Usage

Inspect non-subscription purchases:

let customerInfo = Superwall.shared.customerInfo

for purchase in customerInfo.nonSubscriptions {
  print("Product: \(purchase.productId)")
  print("Store: \(purchase.store)")
  print("Consumable: \(purchase.isConsumable)")
  print("Revoked: \(purchase.isRevoked)")
}

Related