Represents the public interface of the underlying store system for the Oculus Store.
More...
|
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...
|
|
|
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...
|
|
Represents the public interface of the underlying store system for the Oculus Store.
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.
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.
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 | ) |
|
Fetch the latest product metadata, including purchase receipts, asynchronously with results returned via IStoreCallback.
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: