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

IAP Class

The (In-App Purchases) API provides methods for managing in-app purchases, including retrieving purchase history, getting product information by Purchase::SKU, and consuming purchases. For more information, see here.

Static Member Functions

Allow the consumable product to be purchased again. Conceptually, this indicates that the item was used or consumed.
Parameters
sku
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.
Retrieve a list of products that can be purchased.
Parameters
skus
The SKUs of the products to retrieve.
Retrieve a list of Purchase that the Logged-In-User has made. This list will also contain consumable purchases that have not been consumed.
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.
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, empty purchase on cancel, and an error on error.
Parameters
sku
sku for the item the user wishes to purchase.
static Request< Models.ProductList > GetNextProductListPage
static Request< Models.PurchaseList > GetNextPurchaseListPage
Did you find this page helpful?