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

Purchase Class

A purchase is made when a user buys a Product. 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

Purchase ( o )
Signature
Oculus.Platform.Models.Purchase.Purchase(IntPtr o)
Parameters
o: IntPtr

Fields

DeveloperPayload : readonly string
The developer payload feature is unimplemented.
Signature
readonly string Oculus.Platform.Models.Purchase.DeveloperPayload
ExpirationTime : readonly DateTime
The time when the purchased Product expires. This value only applies to subscriptions, and will be null for durable and consumable IAP items.
Signature
readonly DateTime Oculus.Platform.Models.Purchase.ExpirationTime
GrantTime : readonly DateTime
The timestamp that represents when the user was granted entitlement to the Product that was purchased.
Signature
readonly DateTime Oculus.Platform.Models.Purchase.GrantTime
ID : readonly string
Signature
readonly string Oculus.Platform.Models.Purchase.ID
ReportingId : readonly string
The Reporting ID feature is not implemented.
Signature
readonly string Oculus.Platform.Models.Purchase.ReportingId
Sku : readonly string
The SKU of the IAPProduct that was purchased. This value is case- sensitive. To retrieve the product information, you can use this value when calling IAP.GetProductsBySKU().
Signature
readonly string Oculus.Platform.Models.Purchase.Sku