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

Price

Updated: Aug 26, 2025

Price

interface Price
The price of a horizon.platform.iap.models.Product. A price contains a currency code, an amount in hundredths, and its formatted string representation. For example, a price with a currency code of "USD" and an amount in hundredths of 99 has a formatted string of "$0.99".

Properties

NameSummary
amountInHundredths
abstract val amountInHundredths: Long
The price of the product in hundredths of currency units.
currency
abstract val currency: String
The ISO 4217 currency code for the price of the product. For example, "USD", "GBP", "JPY".
formatted
abstract val formatted: String
The formatted string representation of the price, e.g., "$0.78". The value depends on the horizon.platform.iap.models.Price.currency and horizon.platform.iap.models.Price.amountInHundredths.
json
open val json: String
Did you find this page helpful?
Thumbs up icon
Thumbs down icon