Superwall

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

Store values (4.11.0+)

appStore, stripe, paddle, playStore, superwall, 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)")
}

How is this guide?

Edit on GitHub