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

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 )
The developer payload feature is unimplemented.
Returns
String
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
The timestamp that represents when the user was granted entitlement to the com.meta.horizon.platform.ovr.models.Product that was purchased.
Returns
LocalDateTime
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
The Reporting ID feature is not implemented.
Returns
String
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
Did you find this page helpful?
Thumbs up icon
Thumbs down icon