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

OVR_Requests_IAP.h File

Functions

Allow the consumable IAP 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.
A message with type ovrMessage_IAP_ConsumePurchase will be generated in response.First call ovr_Message_IsError() to check if an error occurred.This response has no payload. If no error occurred, the request was successful. Yay!
Get the next page of entriesA message with type ovrMessage_IAP_GetNextProductArrayPage 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().
Get the next page of entriesA message with type ovrMessage_IAP_GetNextPurchaseArrayPage 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 ovrPurchaseArrayHandle. Extract the payload from the message handle with ovr_Message_GetPurchaseArray().
Retrieve a list of IAP products that can be purchased.
Parameters
skus
The SKUs of the products to retrieve.
count
Number of items you provided in the SKUs.
A message with type 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().
Retrieve a list of Purchase that the Logged-In-User has made. This list will also contain consumable purchases that have not been consumed.A message with type ovrMessage_IAP_GetViewerPurchases 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 ovrPurchaseArrayHandle. Extract the payload from the message handle with ovr_Message_GetPurchaseArray().
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.A message with type ovrMessage_IAP_GetViewerPurchasesDurableCache 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 ovrPurchaseArrayHandle. Extract the payload from the message handle with ovr_Message_GetPurchaseArray().
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
IAP sku for the item the user wishes to purchase.
A message with type ovrMessage_IAP_LaunchCheckoutFlow 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 ovrPurchaseHandle. Extract the payload from the message handle with ovr_Message_GetPurchase().
Did you find this page helpful?
Thumbs up icon
Thumbs down icon