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

Purchase Class

A purchase is made when a user buys a Models.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 Models.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 Models.Product that was purchased.
Signature
readonly DateTime Oculus.Platform.Models.Purchase.GrantTime
ID : readonly string
The unique identifier of a Models.Purchase represents a user's unique entitlement to a Models.Product. This value is 0 for shared IAP entitlements.
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 IAPModels.Product 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
Type : readonly ProductType
The Type of the IAPModels.Product that was purchased. The values can be ProductType.DURABLE, ProductType.CONSUMABLE, or a ProductType.SUBSCRIPTION.
Signature
readonly ProductType Oculus.Platform.Models.Purchase.Type