# PurchaseFlowParams.Builder

```
public final class PurchaseFlowParams.Builder extends Object
```

```
java.lang.Object
    ↳ com.gaa.sdk.iap.PurchaseFlowParams.Builder
```

\


It is a builder for easy creation of the PurchaseFlowParams instances.

## Public methods <a href="#purchaseflowparams.builder-publicmethods" id="purchaseflowparams.builder-publicmethods"></a>

***

### setProductId <a href="#purchaseflowparams.builder-setproductid" id="purchaseflowparams.builder-setproductid"></a>

```
PurchaseFlowParams.Builder setProductId(String productId)
```

| **Parameters:**            |                      |
| -------------------------- | -------------------- |
| productId                  | ID of in-app product |
| **Returns:**               |                      |
| PurchaseFlowParams.Builder | <p><br></p>          |

### setProductType <a href="#purchaseflowparams.builder-setproducttype" id="purchaseflowparams.builder-setproducttype"></a>

```
PurchaseFlowParams.Builder setProductType(String productType)
```

| **Parameters:**            |                                                                                                                                                             |
| -------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| productType                | <p>Type of in-app product</p><p><a href="https://dev.onestore.co.kr/wiki/en/doc/purchaseclient-producttype-5833452.html">PurchaseClient.ProductType</a></p> |
| **Returns:**               |                                                                                                                                                             |
| PurchaseFlowParams.Builder | <p><br></p>                                                                                                                                                 |

### setProductName <a href="#purchaseflowparams.builder-setproductname" id="purchaseflowparams.builder-setproductname"></a>

```
PurchaseFlowParams.Builder setProductType(String productName)
```

| **Parameters:**            |                                                                                                             |
| -------------------------- | ----------------------------------------------------------------------------------------------------------- |
| productName                | The name of in-app product to be exposed at the time of purchase, not the name of registered in-app product |
| **Returns:**               |                                                                                                             |
| PurchaseFlowParams.Builder | <p><br></p>                                                                                                 |

### setDeveloperPayload <a href="#purchaseflowparams.builder-setdeveloperpayload" id="purchaseflowparams.builder-setdeveloperpayload"></a>

```
PurchaseFlowParams.Builder setDeveloperPayload(String developerPayload)
```

| **Parameters:**            |                     |
| -------------------------- | ------------------- |
| developerPayload           | Developer’s payload |
| **Returns:**               |                     |
| PurchaseFlowParams.Builder | <p><br></p>         |

### setGameUserId <a href="#purchaseflowparams.builder-setgameuserid" id="purchaseflowparams.builder-setgameuserid"></a>

```
PurchaseFlowParams.Builder setGameUserId(String gameUserId)
```

| **Parameters:**            |                                                |
| -------------------------- | ---------------------------------------------- |
| gameUserId                 | User’s ID that can be identified by developers |
| **Returns:**               |                                                |
| PurchaseFlowParams.Builder | <p><br></p>                                    |

### setPromotionApplicable <a href="#purchaseflowparams.builder-setpromotionapplicable" id="purchaseflowparams.builder-setpromotionapplicable"></a>

```
PurchaseFlowParams.Builder setPromotionApplicable(boolean promotion)
```

| **Parameters:**            |                          |
| -------------------------- | ------------------------ |
| promotion                  | Promotional availability |
| **Returns:**               |                          |
| PurchaseFlowParams.Builder | <p><br></p>              |

### build <a href="#purchaseflowparams.builder-build" id="purchaseflowparams.builder-build"></a>

```
 build()
```

It creates the PurchaseFlowParams instances.

\


| **Returns:**                                                                                 |             |
| -------------------------------------------------------------------------------------------- | ----------- |
| [PurchaseFlowParams](https://dev.onestore.co.kr/wiki/en/doc/purchaseflowparams-5833439.html) | <p><br></p> |
