API reference

Purchase Class

A purchase is made when a user buys a com.meta.horizon.platform.ovr.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.

Member Functions

Purchase
( final long ptr )
String getDeveloperPayload ( )
The developer payload feature is unimplemented.
Returns
String
LocalDateTime getExpirationTime ( )
The time when the purchased com.meta.horizon.platform.ovr.models.Product expires. This value only applies to subscriptions, and will be null for durable and consumable IAP items.
Returns
LocalDateTime
LocalDateTime getGrantTime ( )
The timestamp that represents when the user was granted entitlement to the com.meta.horizon.platform.ovr.models.Product that was purchased.
Returns
LocalDateTime
String getID ( )
The unique identifier of a com.meta.horizon.platform.ovr.models.Purchase represents a user's unique entitlement to a com.meta.horizon.platform.ovr.models.Product. This value is 0 for shared IAP entitlements.
Returns
long
String getReportingId ( )
The Reporting ID feature is not implemented.
Returns
String
String getSku ( )
The SKU of the IAP com.meta.horizon.platform.ovr.models.Product that was purchased. This value is case-sensitive. To retrieve the product information, you can use this value when calling com.meta.horizon.platform.ovr.requests.IAP#getProductsBySKU(String[] skus).
Returns
String