ovr_IAP_ConsumePurchase ( const char * sku ) | |
ovr_IAP_LaunchCheckoutFlow ( const char * sku ) |
ovrRequest ovr_IAP_ConsumePurchase ( const char * sku ) |
---|
Allow the consumable IAP product to be purchased again. Conceptually, this indicates that the item was used or consumed. 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! |
ovrRequest ovr_IAP_GetNextProductArrayPage ( ovrProductArrayHandle handle ) |
---|
Get the next page of entries A 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(). |
ovrRequest ovr_IAP_GetNextPurchaseArrayPage ( ovrPurchaseArrayHandle handle ) |
---|
Get the next page of entries A 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(). |
ovrRequest ovr_IAP_GetProductsBySKU ( const char ** skus, int count ) |
---|
Retrieve a list of IAP products that can be purchased. Parameters
A message with type ovrMessage_IAP_GetProductsBySKU will be generated in response.skus The SKUs of the products to retrieve. countNumber of items you provided in the SKUs. 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(). |
ovrRequest ovr_IAP_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. 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(). |
ovrRequest ovr_IAP_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. 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(). |
ovrRequest ovr_IAP_LaunchCheckoutFlow ( const char * 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. Parameters
A message with type ovrMessage_IAP_LaunchCheckoutFlow will be generated in response.sku IAP sku for the item the user wishes to purchase. 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(). |