# PurchaseFlowParams

public class PurchaseFlowParams extends Object\
java.lang.Object    ↳ com.gaa.sdk.iap.PurchaseFlowParams

\
A parameter to purchase the in-app products.

\
**See Also:**\
[PurchaseClient.launchPurchaseFlow](https://onestore-dev.gitbook.io/dev/eng/tools/billing/v21/references/classes/purchaseclient)(Activity, [PurchaseFlowParams](https://onestore-dev.gitbook.io/dev/eng/tools/billing/v21/references/classes/purchaseflowparams))

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

***

| **Nested classes** |                                                                                                                                                 |
| ------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| class              | <p><a href="purchaseflowparams.builder">PurchaseFlowParams.Builder<br></a>A builder that helps create a PurchaseFlowParams instance easily.</p> |

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

***

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

String getProductId()\
ID of the in-app products to purchase.

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

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

String getProductType()\
Type of the in-app products to purchase.

| **Returns:** |                                                                                                                                           |
| ------------ | ----------------------------------------------------------------------------------------------------------------------------------------- |
| String       | [PurchaseClient.ProductType](https://onestore-dev.gitbook.io/dev/eng/tools/billing/v21/references/annptations/purchaseclient.producttype) |

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

String getProductName()\
The name of products that will be exposed at the time of purchase (not the name of the registered products). If it is null, the registered products' name will be exposed on the purchase page.

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

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

String getGameUserId()\
User's ID that is able to be verified by the developer.

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

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

boolean isPromotionApplicable()\
Indicates whether the promotion is applicable or not.

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

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

String getDeveloperPayload()\
Restores the payload that is specified by the developer.

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

### getOldPurchaseToken <a href="#id-en-purchaseflowparams-getoldpurchasetoken" id="id-en-purchaseflowparams-getoldpurchasetoken"></a>

String getOldPurchaseToken()\
Purchase token of subscription products to be changed.

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

### getProrationMode() <a href="#id-en-purchaseflowparams-getprorationmode" id="id-en-purchaseflowparams-getprorationmode"></a>

int getProrationMode()\
Proration mode for upgrade or downgrade.

| **Returns:** |                                  |
| ------------ | -------------------------------- |
| int          | PurchaseFlowParams.ProrationMode |

### getQuantity() <a href="#id-en-purchaseflowparams-getquantity" id="id-en-purchaseflowparams-getquantity"></a>

int getQuantity()\
Indicates the quantity of the products.

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

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

PurchaseFlowParams.Builder newBuilder()\
Generates the builder to create a PurchaseFlowParams instance.

| **Returns:**                                                                                                                          |             |
| ------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
| [PurchaseFlowParams.Builder](https://onestore-dev.gitbook.io/dev/eng/tools/billing/v21/references/classes/purchaseflowparams.builder) | <p><br></p> |
