# PurchaseFlowParams.Builder

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

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

<br>

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.

<br>

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://onestore-dev.gitbook.io/dev/eng/tools/billing/old-version/v19/one-store-iap-reference/classes/purchaseflowparams.builder.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
