# Print output for @column tags ?> BillingFlowParams {% setvar book_path %}/reference/com/android/billingclient/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

BillingFlowParams

public class BillingFlowParams
extends Object

java.lang.Object
   ↳ com.android.billingclient.api.BillingFlowParams


Parameters to initiate a purchase flow. See BillingClient.launchBillingFlow(Activity, BillingFlowParams).

Summary

Nested classes

class BillingFlowParams.Builder

Helps to construct BillingFlowParams that are used to initiate a purchase flow. 

@interface BillingFlowParams.ProrationMode

Replace SKU ProrationMode. 

Constants

String EXTRA_PARAM_KEY_ACCOUNT_ID

String EXTRA_PARAM_KEY_OLD_SKUS

String EXTRA_PARAM_KEY_OLD_SKU_PURCHASE_TOKEN

String EXTRA_PARAM_KEY_REPLACE_SKUS_PRORATION_MODE

String EXTRA_PARAM_KEY_VR

Public methods

String getOldSku()

Returns the SKU that the user is upgrading or downgrading from Included in documentation by the annotations: @Annotations.HideMultiItem

String getOldSkuPurchaseToken()

Returns the purchase token of the SKU the user is upgrading or downgrading from. Included in documentation by the annotations: @Annotations.HideMultiItem

int getReplaceSkusProrationMode()

Returns one of BillingFlowParams.ProrationMode indicating the proration mode for SKU replacement. Included in documentation by the annotations: @Annotations.HideMultiItem

String getSku()

Returns the SKU that is being purchased or upgraded/downgraded to as published in the Google Developer console. Included in documentation by the annotations: @Annotations.HideMultiItem

SkuDetails getSkuDetails()

Returns the full SKU details for this purchase. Included in documentation by the annotations: @Annotations.HideMultiItem

String getSkuType()

Returns the BillingClient.SkuType of the item being purchased. Included in documentation by the annotations: @Annotations.HideMultiItem

boolean getVrPurchaseFlow()

Returns whether to launch a VR purchase flow.

static BillingFlowParams.Builder newBuilder()

Constructs a new BillingFlowParams.Builder instance.

Inherited methods

Constants

EXTRA_PARAM_KEY_ACCOUNT_ID

public static final String EXTRA_PARAM_KEY_ACCOUNT_ID

Constant Value: "accountId"

EXTRA_PARAM_KEY_OLD_SKUS

public static final String EXTRA_PARAM_KEY_OLD_SKUS

Constant Value: "skusToReplace"

EXTRA_PARAM_KEY_OLD_SKU_PURCHASE_TOKEN

public static final String EXTRA_PARAM_KEY_OLD_SKU_PURCHASE_TOKEN

Constant Value: "oldSkuPurchaseToken"

EXTRA_PARAM_KEY_REPLACE_SKUS_PRORATION_MODE

public static final String EXTRA_PARAM_KEY_REPLACE_SKUS_PRORATION_MODE

Constant Value: "prorationMode"

EXTRA_PARAM_KEY_VR

public static final String EXTRA_PARAM_KEY_VR

Constant Value: "vr"

Public methods

getOldSku

public String getOldSku ()
Included in documentation by the annotations: @Annotations.HideMultiItem

Returns the SKU that the user is upgrading or downgrading from

Returns
String

getOldSkuPurchaseToken

public String getOldSkuPurchaseToken ()
Included in documentation by the annotations: @Annotations.HideMultiItem

Returns the purchase token of the SKU the user is upgrading or downgrading from.

Returns
String

getReplaceSkusProrationMode

public int getReplaceSkusProrationMode ()
Included in documentation by the annotations: @Annotations.HideMultiItem

Returns one of BillingFlowParams.ProrationMode indicating the proration mode for SKU replacement.

Returns
int

getSku

public String getSku ()
Included in documentation by the annotations: @Annotations.HideMultiItem

Returns the SKU that is being purchased or upgraded/downgraded to as published in the Google Developer console.

Returns
String

getSkuDetails

public SkuDetails getSkuDetails ()
Included in documentation by the annotations: @Annotations.HideMultiItem

Returns the full SKU details for this purchase.

Returns
SkuDetails

getSkuType

public String getSkuType ()
Included in documentation by the annotations: @Annotations.HideMultiItem

Returns the BillingClient.SkuType of the item being purchased.

Returns
String

getVrPurchaseFlow

public boolean getVrPurchaseFlow ()

Returns whether to launch a VR purchase flow.

Returns
boolean

newBuilder

public static BillingFlowParams.Builder newBuilder ()

Constructs a new BillingFlowParams.Builder instance.

Returns
BillingFlowParams.Builder