ConsumePurchase
(
sku
)
|
Allow the consumable IAP product to be purchased again. Conceptually, this indicates that the item was used or consumed. Important: Make sure to pass the correct SKU of the purchase that will be consumed. This value is case- sensitive and should match exactly with the product SKU set in the Developer Dashboard.
Signature
static Request Oculus.Platform.IAP.ConsumePurchase(string sku) Parameters sku: string
The SKU of the product of the purchase that will be consumed. This value is case-sensitive and should match exactly with the product SKU set in the Developer Dashboard.
Returns Request |
GetNextProductListPage
(
list
)
|
Signature
static Request<Models.ProductList> Oculus.Platform.IAP.GetNextProductListPage(Models.ProductList list) Parameters list: Models.ProductListReturns Request< Models.ProductList > |
GetNextPurchaseListPage
(
list
)
|
Signature
static Request<Models.PurchaseList> Oculus.Platform.IAP.GetNextPurchaseListPage(Models.PurchaseList list) Parameters list: Models.PurchaseListReturns Request< Models.PurchaseList > |
GetProductsBySKU
(
skus
)
|
Retrieve a list of IAP products that can be purchased. Note: You must provide a list of SKUs (Stock Keeping Units) to retrieve the corresponding product information. The SKUs are used to identify the products in the Oculus store, which can be retrieved by accessing the Developer Dashboard or by Purchase::Sku.
Signature
static Request<Models.ProductList> Oculus.Platform.IAP.GetProductsBySKU(string[] skus) Parameters skus: string []
An array of SKUs of the products to retrieve. Each SKU should be a string value that matches exactly with the product SKU set in the Oculus Developer Dashboard.
Returns Request< Models.ProductList > |
GetViewerPurchases
()
|
Retrieve a list of Purchase that the Logged-In-User has made. This list will also contain consumable purchases that have not been consumed. Note: This method returns all purchases, including consumable and non-consumable ones. If you only want to retrieve durable purchases, use get_viewer_purchases_durable_cache instead.
Signature
static Request<Models.PurchaseList> Oculus.Platform.IAP.GetViewerPurchases() Returns Request< Models.PurchaseList > |
GetViewerPurchasesDurableCache
()
|
Retrieve a list of Purchase that the Logged-In-User has made. This list will only contain durable purchase (non-consumable) and is populated from a device cache. Important: It is recommended to use IAP.GetViewerPurchases() first and only check the cache if that fails. This method is intended as a fallback mechanism and may not always return up-to-date results.
Signature
static Request<Models.PurchaseList> Oculus.Platform.IAP.GetViewerPurchasesDurableCache() Returns Request< Models.PurchaseList > |
LaunchCheckoutFlow
(
sku
)
|
Launch the checkout flow to purchase the existing product. Oculus Home tries handle and fix as many errors as possible. Home returns the appropriate error message and how to resolve it, if possible. Returns a purchase on success, and an error on user cancellation or other errors.
In the case of a user cancelation, the Error::Message value will contain a JSON object with a "category" property containing a value of "user_canceled".
Signature
static Request<Models.Purchase> Oculus.Platform.IAP.LaunchCheckoutFlow(string sku) Parameters Returns Request< Models.Purchase > |