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. Do not call this method for one-time products.

A subscriptions product 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. Use this method to specify which offer the user would like to purchase. This method should not be called for One-time products.

setProductDetails

public BillingFlowParams.ProductDetailsParams.Builder setProductDetails(ProductDetails productDetails)

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