# PurchaseFlowParams

```
public class PurchaseFlowParams extends Object
```

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

<br>

It is a parameter for purchasing in-app products.

**See Also:**

```
(Activity, )
```

## Summary <a href="#purchaseflowparams-summary" id="purchaseflowparams-summary"></a>

***

| Nested classes |                                                                                                                                                                                                             |
| -------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| class          | <p><a href="https://dev.onestore.co.kr/wiki/en/doc/purchaseflowparams-builder-5833440.html">PurchaseFlowParams.Builder</a></p><p>It is a builder for easy creation of the PurchaseFlowParams instances.</p> |

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

***

### getProductId <a href="#purchaseflowparams-getproductid" id="purchaseflowparams-getproductid"></a>

```
String getProductId()
```

It is the ID of in-app products to be purchased.

| **Returns:** |             |
| ------------ | ----------- |
| String       | <p><br></p> |

### getProductType <a href="#purchaseflowparams-getproducttype" id="purchaseflowparams-getproducttype"></a>

```
String getProductType()
```

It is the type of in-app products to be purchased.

| **Returns:** |                                                                                                              |
| ------------ | ------------------------------------------------------------------------------------------------------------ |
| String       | [PurchaseClient.ProductType](https://dev.onestore.co.kr/wiki/en/doc/purchaseclient-producttype-5833452.html) |

### getProductName <a href="#purchaseflowparams-getproductname" id="purchaseflowparams-getproductname"></a>

```
String getProductName()
```

It is not the name of registered in-app product but the name of in-app product to be exposed at the time of purchase.

If it is null, the name of registered in-app product will be exposed on the purchase page.

| **Returns:** |             |
| ------------ | ----------- |
| String       | <p><br></p> |

### getGameUserId <a href="#purchaseflowparams-getgameuserid" id="purchaseflowparams-getgameuserid"></a>

```
String getGameUserId()
```

It is the user’s ID that can be confirmed by developers.

| **Returns:** |             |
| ------------ | ----------- |
| String       | <p><br></p> |

### isPromotionApplicable <a href="#purchaseflowparams-ispromotionapplicable" id="purchaseflowparams-ispromotionapplicable"></a>

```
boolean isPromotionApplicable()
```

It shows whether promotion is available or not.

| **Returns:** |             |
| ------------ | ----------- |
| boolean      | <p><br></p> |

### getDeveloperPayload <a href="#purchaseflowparams-getdeveloperpayload" id="purchaseflowparams-getdeveloperpayload"></a>

```
String getDeveloperPayload()
```

It returns the payload specified by developers.

| **Returns:** |             |
| ------------ | ----------- |
| String       | <p><br></p> |

### newBuilder <a href="#purchaseflowparams-newbuilder" id="purchaseflowparams-newbuilder"></a>

```
 newBuilder()
```

It generates a builder for creating the PurchaseFlowParams instances.

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