[EN]PurchaseFlowParams.Builder
Last updated
Last updated
public final class PurchaseFlowParams.Builder extends Object java.lang.Object ↳ com.gaa.sdk.iap.PurchaseFlowParams.Builder
A builder that helps create a PurchaseFlowParams instance easily.
PurchaseFlowParams.Builder setProductId(String productId)
PurchaseFlowParams.Builder setProductType(String productType)
PurchaseFlowParams.Builder setProductType(String productName)
PurchaseFlowParams.Builder setDeveloperPayload(String developerPayload)
PurchaseFlowParams.Builder setGameUserId(String gameUserId)
PurchaseFlowParams.Builder setPromotionApplicable(boolean promotion)
PurchaseFlowParams.Builder setQuantity(int quantity)
PurchaseFlowParams.Builder setSubscriptionUpdateParams(SubscriptionUpdateParams params)
PurchaseFlowParams build() Creates a PurchaseFlowParams instance.
Parameters:
productId
ID of in-app products
Returns:
PurchaseFlowParams.Builder
Parameters:
productType
PurchaseClient.ProductType Product type of in-app products
Returns:
PurchaseFlowParams.Builder
Parameters:
productName
Name of products that will be exposed at the time of purchase (not the name of the registered products).
Returns:
PurchaseFlowParams.Builder
Parameters:
developerPayload
Developer's payload
Returns:
PurchaseFlowParams.Builder
Parameters:
gameUserId
User's ID that is able to be verified by the developer
Returns:
PurchaseFlowParams.Builder
Parameters:
promotion
Whether the promotion is applicable or not
Returns:
PurchaseFlowParams.Builder
Parameters:
quantity
Quantity of products
Returns:
PurchaseFlowParams.Builder
Parameters:
params
Mode for upgrade or downgrade of subscription products PurchaseFlowParams.SubscriptionUpdateParams
Returns:
PurchaseFlowParams.Builder
Returns: