Simple IAP System  5.0
Public Member Functions | Public Attributes | List of all members
OculusStore

Represents the public interface of the underlying store system for the Oculus Store. More...

Inheritance diagram for OculusStore:

Public Member Functions

void FinishTransaction (ProductDefinition product, string transactionId)
 
void Initialize (IStoreCallback callback)
 
void Purchase (ProductDefinition product, string developerPayload)
 
void RetrieveProducts (ReadOnlyCollection< ProductDefinition > products)
 
virtual void Initialize (IStoreCallback callback)
 Initialize the instance using the specified IStoreCallback. More...
 
void RetrieveProducts (ReadOnlyCollection< ProductDefinition > products)
 Fetch the latest product metadata, including purchase receipts, asynchronously with results returned via IStoreCallback. More...
 
virtual void Purchase (ProductDefinition product, string developerPayload)
 Handle a purchase request from a user. Developer payload is provided for stores that define such a concept. More...
 
void OnPurchaseSucceeded (Message< Purchase > result)
 Callback from the billing system when a purchase completes (be it successful or not). More...
 
virtual void FinishTransaction (ProductDefinition product, string transactionId)
 Called by Unity Purchasing when a transaction has been recorded. Store systems should perform any housekeeping here, such as closing transactions or consuming consumables. More...
 
void OnSetupFailed (string error)
 Indicate that IAP is unavailable for a specific reason, such as IAP being disabled in device settings. More...
 
void OnPurchaseFailed (string error, int code)
 Method we are calling for any failed results in the billing interaction. Here error codes are mapped to more user-friendly descriptions shown to them. More...
 

Public Attributes

IStoreCallback callback
 Callback for hooking into the native Unity IAP logic. More...
 
Dictionary< string, ProductDescription > products
 List of products which are declared and retrieved by the billing system. More...
 

Detailed Description

Represents the public interface of the underlying store system for the Oculus Store.

Member Function Documentation

void FinishTransaction ( ProductDefinition  product,
string  transactionId 
)
virtual void FinishTransaction ( ProductDefinition  product,
string  transactionId 
)
virtual

Called by Unity Purchasing when a transaction has been recorded. Store systems should perform any housekeeping here, such as closing transactions or consuming consumables.

void Initialize ( IStoreCallback  callback)
virtual void Initialize ( IStoreCallback  callback)
virtual

Initialize the instance using the specified IStoreCallback.

void OnPurchaseFailed ( string  error,
int  code 
)

Method we are calling for any failed results in the billing interaction. Here error codes are mapped to more user-friendly descriptions shown to them.

void OnPurchaseSucceeded ( Message< Purchase result)

Callback from the billing system when a purchase completes (be it successful or not).

void OnSetupFailed ( string  error)

Indicate that IAP is unavailable for a specific reason, such as IAP being disabled in device settings.

void Purchase ( ProductDefinition  product,
string  developerPayload 
)
virtual void Purchase ( ProductDefinition  product,
string  developerPayload 
)
virtual

Handle a purchase request from a user. Developer payload is provided for stores that define such a concept.

void RetrieveProducts ( ReadOnlyCollection< ProductDefinition >  products)
void RetrieveProducts ( ReadOnlyCollection< ProductDefinition >  products)

Fetch the latest product metadata, including purchase receipts, asynchronously with results returned via IStoreCallback.

Member Data Documentation

IStoreCallback callback

Callback for hooking into the native Unity IAP logic.

Dictionary<string, ProductDescription> products

List of products which are declared and retrieved by the billing system.


The documentation for this class was generated from the following file: