API reference
API reference
Select your platform
No SDKs available
No versions available

IAP Class

Static Methods

ConsumePurchase ( sku )
Allow the consumable IAP product to be purchased again. Conceptually, this indicates that the item was used or consumed.
Signature
static Request Oculus.Platform.IAP.ConsumePurchase(string sku)
Parameters
sku: string
Returns
Request
GetNextProductListPage ( list )
Signature
static Request<Models.ProductList> Oculus.Platform.IAP.GetNextProductListPage(Models.ProductList list)
Parameters
GetNextPurchaseListPage ( list )
Signature
static Request<Models.PurchaseList> Oculus.Platform.IAP.GetNextPurchaseListPage(Models.PurchaseList list)
Parameters
GetProductsBySKU ( skus )
Retrieve a list of IAP products that can be purchased.
Signature
static Request<Models.ProductList> Oculus.Platform.IAP.GetProductsBySKU(string[] skus)
Parameters
skus: string []  The SKUs of the products to retrieve.
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.
Signature
static Request<Models.PurchaseList> Oculus.Platform.IAP.GetViewerPurchases()
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. It is recommended in all cases to use ovr_User_GetViewerPurchases first and only check the cache if that fails.
Signature
static Request<Models.PurchaseList> Oculus.Platform.IAP.GetViewerPurchasesDurableCache()
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 resolveit, if possible. Returns a purchase on success, empty purchase on cancel, and an error on error.
Signature
static Request<Models.Purchase> Oculus.Platform.IAP.LaunchCheckoutFlow(string sku)
Parameters
sku: string  IAP sku for the item the user wishes to purchase.