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
Name | Type | Description |
---|---|---|
sku | String | Value of the SKU you wish to Purchase. (eg: attempts ) |
skuType | String | String value of the type of SKU to purchase. Use SkuType to specify the value. |
orderReference | String | [DEPRECATED] Internal value to be used by the SDK Services. Can't be the same for different purchases in the same package. |
developerPayload | String | String based payload to be used by the Developer to save important values for Purchase identification. (max. 512 chars) |
origin | String | Origin of the Purchase. (Only acceptable value BDS ) |
obfuscatedAccountId | String? | Value to identify a User specific to the Developers Application (eg: via External Login) |
freeTrial | Boolean? | 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
Name | Type | Description |
---|---|---|
sku | String | Value of the SKU you wish to Purchase. (eg: attempts ) |
skuType | String | String value of the type of SKU to purchase. Use SkuType to specify the value. |
orderReference | String | [DEPRECATED] Internal value to be used by the SDK Services. Can't be the same for different purchases in the same package. |
developerPayload | String | String based payload to be used by the Developer to save important values for Purchase identification. (max. 512 chars) |
origin | String | Origin of the Purchase. (Only acceptable value BDS ) |
Updated 28 days ago