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

ovr_IAP_GetProductsBySKU Function

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 ovr_Purchase_GetSKU(). ovrMessage_IAP_GetProductsBySKU will be generated in response.
First call ovr_Message_IsError() to check if an error occurred.
If no error occurred, the message will contain a payload of type ovrProductArrayHandle. Extract the payload from the message handle with ovr_Message_GetProductArray().

Signature

ovrRequest ovr_IAP_GetProductsBySKU(const char **skus, int count)

Parameters

skus: const char ** 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.
count: int The number of items you provided in the SKUs array. This parameter is used to validate the input and ensure that the correct number of products is returned.

Returns