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

ovr_IAP_LaunchCheckoutFlow Function

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, and an error on user cancellation or other errors.
In the case of a user cancelation, the ovr_Error_GetMessage() value will contain a JSON object with a "category" property containing a value of "user_canceled". 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().

Signature

ovrRequest ovr_IAP_LaunchCheckoutFlow(const char *sku)

Parameters

sku: const char * IAP sku for the item the user wishes to purchase.

Returns