/p>
Код: Выделить всё
fun launchBillingFlowForBasePlan(
activity: Activity,
productDetails: ProductDetails,
basePlanId: String,
offerToken: String
) {
val productDetailsParams = BillingFlowParams.ProductDetailsParams.newBuilder()
.setProductDetails(productDetails)
.setOfferToken(offerToken)
.build()
val billingFlowParams = BillingFlowParams.newBuilder()
.setProductDetailsParamsList(listOf(productDetailsParams))
.build()
billingClient?.launchBillingFlow(activity, billingFlowParams)
}
Подробнее здесь: https://stackoverflow.com/questions/794 ... showing-on
Мобильная версия