Description of a phase for the pricing of a purchase.

interface PricingPhase {
    billingCycles?: number;
    billingPeriod?: string;
    currency?: string;
    paymentMode?: PaymentMode;
    price: string;
    priceMicros: number;
    recurrenceMode?: CdvPurchase.RecurrenceMode;
}

Properties

billingCycles?: number

Number of recurrence cycles (if recurrenceMode is FINITE_RECURRING)

billingPeriod?: string

ISO 8601 duration of the period (https://en.wikipedia.org/wiki/ISO_8601#Durations)

currency?: string

Currency code

paymentMode?: PaymentMode

Payment mode for the pricing phase ("PayAsYouGo", "UpFront", or "FreeTrial")

price: string

Price formatted for humans

priceMicros: number

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

recurrenceMode?: CdvPurchase.RecurrenceMode

Type of recurring payment