API reference

OVR_Purchase.h File

Typedefs

struct ovrPurchase * ovrPurchaseHandle
A purchase is made when a user buys a ovrProductHandle. The IAP product, which can represent a consumable item, a durable item, or a subscription, must be defined for purchase through the developer dashboard.

Functions

const char * ovr_Purchase_GetDeveloperPayload
( const ovrPurchaseHandle obj )
The developer payload feature is unimplemented.
unsigned long long ovr_Purchase_GetExpirationTime
( const ovrPurchaseHandle obj )
The time when the purchased ovrProductHandle expires. This value only applies to subscriptions, and will be null for durable and consumable IAP items.
unsigned long long ovr_Purchase_GetGrantTime
( const ovrPurchaseHandle obj )
The timestamp that represents when the user was granted entitlement to the ovrProductHandle that was purchased.
ovrID ovr_Purchase_GetPurchaseID
( const ovrPurchaseHandle obj )
Deprecated
const char * ovr_Purchase_GetReportingId
( const ovrPurchaseHandle obj )
The Reporting ID feature is not implemented.
const char * ovr_Purchase_GetSKU
( const ovrPurchaseHandle obj )
The SKU of the IAP ovrProductHandle that was purchased. This value is case- sensitive. To retrieve the product information, you can use this value when calling ovr_IAP_GetProductsBySKU().
const char * ovr_Purchase_GetPurchaseStrID
( const ovrPurchaseHandle obj )