getFormattedPrice
fun ProductDetails.getFormattedPrice(subscriptionOfferIndex: Int = 0, subscriptionPricingPhaseIndex: Int = 0): String?
A helper method making it easier to retrieve a formatted price from product details. Parameters only apply to subscription products.
Return
formatted price or null on error
Parameters
subscriptionOfferIndex
index of ProductDetails.getSubscriptionOfferDetails.
subscriptionPricingPhaseIndex
index of ProductDetails.SubscriptionOfferDetails.getPricingPhases