# BillingFlowParams.ProductDetailsParams.Builder


```
public class BillingFlowParams.ProductDetailsParams.Builder
```

<br />

*** ** * ** ***

Helps to construct a `https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.ProductDetailsParams`.

## Summary

| ### Public methods |
|---|---|
| `https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.ProductDetailsParams` | `https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.ProductDetailsParams.Builder#build()()` Construct a `https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.ProductDetailsParams`. |
| `https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.ProductDetailsParams.Builder` | `https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.ProductDetailsParams.Builder#setOfferToken(java.lang.String)(https://developer.android.com/reference/java/lang/String.html offerToken)` Specifies the identifier of the offer to initiate purchase with. |
| `https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.ProductDetailsParams.Builder` | `https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.ProductDetailsParams.Builder#setProductDetails(com.android.billingclient.api.ProductDetails)(https://developer.android.com/reference/com/android/billingclient/api/ProductDetails productDetails)` Specifies the details of item to be purchased, fetched via `https://developer.android.com/reference/com/android/billingclient/api/BillingClient#queryProductDetailsAsync(com.android.billingclient.api.QueryProductDetailsParams,com.android.billingclient.api.ProductDetailsResponseListener)`. |
| `https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.ProductDetailsParams.Builder` | `https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.ProductDetailsParams.Builder#setSubscriptionProductReplacementParams(com.android.billingclient.api.BillingFlowParams.ProductDetailsParams.SubscriptionProductReplacementParams)( https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.ProductDetailsParams.SubscriptionProductReplacementParams replacementParams )` Specifies the product level replacement params for subscription product. |

## Public methods

### build

```
public BillingFlowParams.ProductDetailsParams build()
```

Construct a `https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.ProductDetailsParams`.

### 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 `https://developer.android.com/reference/com/android/billingclient/api/BillingClient#queryProductDetailsAsync(com.android.billingclient.api.QueryProductDetailsParams,com.android.billingclient.api.ProductDetailsResponseListener)`, which returns all eligible offers and as part of `https://developer.android.com/reference/com/android/billingclient/api/ProductDetails.SubscriptionOfferDetails#getOfferToken()` for subscriptions and `https://developer.android.com/reference/com/android/billingclient/api/ProductDetails.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 `https://developer.android.com/reference/com/android/billingclient/api/BillingClient#queryProductDetailsAsync(com.android.billingclient.api.QueryProductDetailsParams,com.android.billingclient.api.ProductDetailsResponseListener)`.

### setSubscriptionProductReplacementParams

```
public BillingFlowParams.ProductDetailsParams.Builder setSubscriptionProductReplacementParams(
    BillingFlowParams.ProductDetailsParams.SubscriptionProductReplacementParams replacementParams
)
```

Specifies the product level replacement params for subscription product. Do not call this method for one-time products.