Class AbstractStore
Extension point for purchasing plugins.
An abstract class is provided so that methods can be added to the IStore without breaking binary compatibility with existing plugins.
Namespace: UnityEngine.Purchasing.Extension
Syntax
public abstract class AbstractStore : IStore
Methods
FinishTransaction(ProductDefinition, String)
Returns results through IStoreCallback previously passed into Initialize
Declaration
public abstract void FinishTransaction(ProductDefinition product, string transactionId)
Parameters
Type | Name | Description |
---|---|---|
ProductDefinition | product | |
String | transactionId |
Implements
Initialize(IStoreCallback)
Terminal - no callback required
Declaration
public abstract void Initialize(IStoreCallback callback)
Parameters
Type | Name | Description |
---|---|---|
IStoreCallback | callback |
Implements
Purchase(ProductDefinition, String)
Returns results through IStoreCallback previously passed into Initialize
Declaration
public abstract void Purchase(ProductDefinition product, string developerPayload)
Parameters
Type | Name | Description |
---|---|---|
ProductDefinition | product | |
String | developerPayload |
Implements
RetrieveProducts(ReadOnlyCollection<ProductDefinition>)
Returns results through IStoreCallback previously passed into Initialize
Declaration
public abstract void RetrieveProducts(ReadOnlyCollection<ProductDefinition> products)
Parameters
Type | Name | Description |
---|---|---|
ReadOnlyCollection<ProductDefinition> | products |