getTrialOffer

open fun getTrialOffer(productId: String): OfferInfo

Returns the first offer on this subscription that contains a free-trial phase, or null if no offer has a trial.

Free-trial phase = priceAmountMicros == 0 with RecurrenceMode.FINITE_RECURRING.

Return

Trial offer, or null.

Since

3.5.7

Parameters

productId

Subscription product id.