ProductDetails.OneTimePurchaseOfferDetails

public final class ProductDetails.OneTimePurchaseOfferDetails


Represents the offer details to buy an one-time purchase product.

Summary

Public methods

String

Returns formatted price for the payment, including its currency sign.

long

Returns the price for the payment in micro-units, where 1,000,000 micro-units equal one unit of the currency.

String

Returns ISO 4217 currency code for price.

Public methods

getFormattedPrice

public String getFormattedPrice()

Returns formatted price for the payment, including its currency sign.

For tax exclusive countries, the price doesn't include tax.

getPriceAmountMicros

public long getPriceAmountMicros()

Returns the price for the payment in micro-units, where 1,000,000 micro-units equal one unit of the currency.

For example, if price is "€7.99", price_amount_micros is "7990000". This value represents the localized, rounded price for a particular currency.

getPriceCurrencyCode

public String getPriceCurrencyCode()

Returns ISO 4217 currency code for price.

For example, if price is specified in British pounds sterling, currency code is "GBP".