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

FOvrPurchase Struct

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

Constructors

FOvrPurchase ()
This is the default constructor for the struct, which initializes the ovrPurchaseHandle and TOvrMessageHandlePtr to their default values.
Signature
FOvrPurchase::FOvrPurchase()
FOvrPurchase ( OvrHandle , MessageHandlePtr )
Copying values from an OVR handle to the array, and the originating message to prevent the handle from being freed.
Signature
FOvrPurchase::FOvrPurchase(ovrPurchaseHandle OvrHandle, TOvrMessageHandlePtr MessageHandlePtr)
Parameters
MessageHandlePtr: TOvrMessageHandlePtr

Fields

DeveloperPayload : FString
The developer payload feature is unimplemented.
Signature
FString FOvrPurchase::DeveloperPayload
ExpirationTime : FDateTime
The time when the purchased FOvrProduct expires. This value only applies to subscriptions, and will be null for durable and consumable IAP items.
Signature
FDateTime FOvrPurchase::ExpirationTime
GrantTime : FDateTime
The timestamp that represents when the user was granted entitlement to the FOvrProduct that was purchased.
Signature
FDateTime FOvrPurchase::GrantTime
PurchaseID : FString
Signature
FString FOvrPurchase::PurchaseID
ReportingId : FString
The Reporting ID feature is not implemented.
Signature
FString FOvrPurchase::ReportingId
SKU : FString
The SKU of the IAP FOvrProduct that was purchased. This value is case-sensitive. To retrieve the product information, you can use this value when calling IAP_GetProductsBySKU().
Signature
FString FOvrPurchase::SKU

Member Functions

Clear ()
Setting all values to their defaults, effectively clearing the struct.
Signature
void FOvrPurchase::Clear()
Returns
void
Update ( OvrHandle , MessageHandlePtr )
Updating values from an OVR handle to the array, and the originating message to prevent the handle from being freed.
Signature
void FOvrPurchase::Update(ovrPurchaseHandle OvrHandle, TOvrMessageHandlePtr MessageHandlePtr)
Parameters
MessageHandlePtr: TOvrMessageHandlePtr
Returns
void