BillingFlowParams.ProductDetailsParams.Builder

public class BillingFlowParams.ProductDetailsParams.Builder


Helps to construct a ProductDetailsParams.

Summary

Public methods

BillingFlowParams.ProductDetailsParams

Construct a ProductDetailsParams.

BillingFlowParams.ProductDetailsParams.Builder
setOfferToken(String offerToken)

Specifies the identifier of the offer to initiate purchase with.

BillingFlowParams.ProductDetailsParams.Builder

Specifies the details of item to be purchased, fetched via queryProductDetailsAsync.

Public methods

setOfferToken

public BillingFlowParams.ProductDetailsParams.Builder setOfferToken(String offerToken)

Specifies the identifier of the offer to initiate purchase with.

Subscriptions and one time products may be associated with multiple offers. To identify offers a user is eligible for, call BillingClient#queryProductDetailsAsync, which returns all eligible offers and as part of getOfferToken for subscriptions and OneTimePurchaseOfferDetails#getOfferToken for one time products. Use this method to specify which offer the user would like to purchase.

setProductDetails

public BillingFlowParams.ProductDetailsParams.Builder setProductDetails(ProductDetails productDetails)

Specifies the details of item to be purchased, fetched via queryProductDetailsAsync.