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 product, which can represent a consumable item, a durable item, or a subscription, must be defined for purchase through the developer dashboard.

Fields

The developer payload feature is unimplemented.
The time when the purchased Models.Product expires. This value only applies to subscriptions, and will be null for durable and consumable items.
The timestamp that represents when the user was granted entitlement to the Models.Product that was purchased.
The unique identifier of a Models.Purchase represents a user's unique entitlement to a Models.Product. This value is 0 for shared entitlements.
The Reporting ID feature is not implemented.
The SKU of the Models.Product that was purchased. This value is case- sensitive. To retrieve the product information, you can use this value when calling IAP.GetProductsBySKU().
The Type of the Models.Product that was purchased. The values can be ProductType.DURABLE, ProductType.CONSUMABLE, or a ProductType.SUBSCRIPTION.

Member Functions

Purchase
( IntPtr o )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon