Skip to main content

Methods

MethodParametersReturnsNotes
GetItems()List<StoreItem>
SearchItems(query)stringList<StoreItem>Matches name, description, SKU
GetItemsByType(type)stringList<StoreItem>See item types below
GetItemById(id)stringStoreItem?
GetItemBySku(sku)stringStoreItem?
BeginPurchaseFlow(item, onSuccess?, onError?)StoreItem, Action?, Action<string>?voidCallbacks are optional
BeginPurchaseFlow(itemId, onSuccess?, onError?)string, Action?, Action<string>?voidCallbacks are optional
Refresh()void
AddListener(listener)Actionvoid
RemoveListener(listener)Actionvoid

Item types (for GetItemsByType)

"Consumable" · "NonConsumable" · "Subscription"

StoreItem

FieldTypeNotes
Idstring
Namestring
SkustringApp Store / Play Store product ID
Typestring
GrantsGrant[]Rewards granted on purchase

Grant

FieldTypeNotes
GrantIdstringGroups related grants
GrantTypestring
GrantAmountlong
CurrencyCurrency?Non-null for currency grants