One-time purchase offer details (new in Billing Library 8.0.0)

interface InAppOffer {
    formatted_price: string;
    offer_id: null | string;
    offer_token: string;
    price_amount_micros: number;
    price_currency_code: string;
}

Properties

formatted_price: string

Formatted price for display

offer_id: null | string

Offer id associated with this offer (may be null for default offer)

offer_token: string

Token required to pass in launchBillingFlow to purchase with this offer

price_amount_micros: number

Price in micro-units (divide by 1000000 to get numeric price)

price_currency_code: string

ISO 4217 currency code