> For the complete documentation index, see [llms.txt](https://onestore-dev.gitbook.io/dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://onestore-dev.gitbook.io/dev/eng/tools/billing/old-version/v19/one-store-iap-reference/classes/purchaseflowparams.md).

# 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> |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
