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

SkuDetails

Updated: May 13, 2025

SkuDetails

data class SkuDetails(val price: String, val priceAmountMicros: Long, val priceCurrencyCode: String, val sku: String, val subscriptionPeriod: String, val title: String, val description: String, val type: String, val originalPrice: String = "", val originalPriceAmountMicros: Long = 0, val originalJson: String = "", val introductoryPrice: String = "", val introductoryPriceAmountMicros: Long = 0, val introductoryPriceCycles: Int = 0, val introductoryPricePeriod: String = "", val iconUrl: String = "", val freeTrialPeriod: String = "")

Deprecated

This class is deprecated. Use [BillingClient.queryProductDetailsAsync] instead.

Represents an in-app product’s or subscription’s listing details.
The equivalent Google Play Billing Library class can be found at the Android developer documentation for SkuDetails.

Constructors

NameSummary
SkuDetails
constructor(ovrProduct: Product)constructor(originalJson: String)constructor(price: String, priceAmountMicros: Long, priceCurrencyCode: String, sku: String, subscriptionPeriod: String, title: String, description: String, type: String, originalPrice: String = "", originalPriceAmountMicros: Long = 0, originalJson: String = "", introductoryPrice: String = "", introductoryPriceAmountMicros: Long = 0, introductoryPriceCycles: Int = 0, introductoryPricePeriod: String = "", iconUrl: String = "", freeTrialPeriod: String = "")

Types

NameSummary
Companion
object Companion

Properties

NameSummary
description
val description: String
Returns the description of the product.
freeTrialPeriod
val freeTrialPeriod: String
Trial period configured in the Developer Dashboard, specified in ISO 8601 format. For example, P7D equates to seven days. To learn more about free trial eligibility, see In-app Subscriptions.
iconUrl
val iconUrl: String
Returns the icon of the product if present.
introductoryPrice
val introductoryPrice: String
Formatted introductory price of a subscription, including its currency sign, such as €3.99. For tax exclusive countries, the price doesn’t include tax.
introductoryPriceAmountMicros
val introductoryPriceAmountMicros: Long = 0
Introductory price in micro-units. The currency is the same as price_currency_code.
introductoryPriceCycles
val introductoryPriceCycles: Int = 0
The number of subscription billing periods for which the user will be given the introductory price, such as 3.
introductoryPricePeriod
val introductoryPricePeriod: String
The billing period of the introductory price, specified in ISO 8601 format.
originalJson
val originalJson: String
Returns a String in JSON format that contains SKU details.
originalPrice
val originalPrice: String
Returns formatted original price of the item, including its currency sign.
originalPriceAmountMicros
val originalPriceAmountMicros: Long = 0
Returns the original price in micro-units, where 1,000,000 micro-units equal one unit of the currency.
price
val price: String
Returns formatted price of the item, including its currency sign.
priceAmountMicros
val priceAmountMicros: Long
Returns price in micro-units, where 1,000,000 micro-units equal one unit of the currency.
priceCurrencyCode
val priceCurrencyCode: String
Returns ISO 4217 currency code for price and original price.
sku
val sku: String
Returns the product Id.
subscriptionPeriod
val subscriptionPeriod: String
Subscription period, specified in ISO 8601 format. For example, P1W equates to one week, P1M equates to one month, P3M equates to three months, P6M equates to six months, and P1Y equates to one year.
title
val title: String
Returns the title of the product being sold.
type
val type: String
Returns the {@link BillingClient.SkuType} of the SKU.

Companion

object Companion
Did you find this page helpful?
Thumbs up icon
Thumbs down icon