API reference

PurchaseV0 Interface

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.

Signature

interface PurchaseV0

Properties

developerPayload : String?
[Get]
The developer payload feature is unimplemented.
Signature
abstract val developerPayload: String?
expirationTime : LocalDateTime?
[Get]
The time when the purchased Product expires. This value only applies to subscriptions, and will be null for durable and consumable IAP items.
Signature
abstract val expirationTime: LocalDateTime?
grantTime : LocalDateTime
[Get]
The timestamp that represents when the user was granted entitlement to the Product that was purchased.
Signature
abstract val grantTime: LocalDateTime
item : PurchaseItem
[Get]
Holds the SKU and type of the item purchased.
Signature
abstract val item: PurchaseItem
purchaseId : String
[Get]
The unique identifier of a PurchaseV0 represents a user's unique entitlement to a Product. This value is 0 for shared IAP entitlements.
Signature
abstract val purchaseId: String
reportingId : String?
[Get]
The Reporting ID feature is not implemented.
Signature
abstract val reportingId: String?