BillingFlowParams

com.appcoins.sdk.billing.BillingFlowParams

Class with the parameters necessary to initiate a purchase flow.


Nested Classes


Builder class used to construct the BillingFlowParams.


Class with the Product Details of the Product to initiate a Billing flow for.


Builder class used to construct the BillingFlowParams.ProductDetailsParams.


Public Methods


newBuilder

BillingFlowParams.Builder newBuilder()

Creates an instane of the BillingFlowParams.Builder.

Returns

BillingFlowParams.Builder reference with the empty values.


constructor (Deprecated)

BillingFlowParams constructor(String sku, String skuType, String orderReference, String developerPayload, String origin, String obfuscatedAccountId, Boolean freeTrial)

This method is deprecated and should no longer be used. Use the BillingFlowParams.Builder instead.

Creates a BillingFlowParams object to initiate a Billing Flow.

Parameters

NameTypeDescription
skuStringValue of the SKU you wish to Purchase. (eg: attempts)
skuTypeStringString value of the type of SKU to purchase. Use SkuType to specify the value.
orderReferenceString[DEPRECATED] Internal value to be used by the SDK Services. Can't be the same for different purchases in the same package.
developerPayloadStringString based payload to be used by the Developer to save important values for Purchase identification. (max. 512 chars)
originStringOrigin of the Purchase. (Only acceptable value BDS)
obfuscatedAccountIdString?Value to identify a User specific to the Developers Application (eg: via External Login)
freeTrialBoolean?Determines if the Billing Flow to launch is a Free Trial or not.

constructor (Deprecated)

BillingFlowParams constructor(String sku, String skuType, String orderReference, String developerPayload, String origin)

This method is deprecated and should no longer be used. Use the BillingFlowParams.Builder instead.

Creates a BillingFlowParams object to initiate a Billing Flow.

Parameters

NameTypeDescription
skuStringValue of the SKU you wish to Purchase. (eg: attempts)
skuTypeStringString value of the type of SKU to purchase. Use SkuType to specify the value.
orderReferenceString[DEPRECATED] Internal value to be used by the SDK Services. Can't be the same for different purchases in the same package.
developerPayloadStringString based payload to be used by the Developer to save important values for Purchase identification. (max. 512 chars)
originStringOrigin of the Purchase. (Only acceptable value BDS)