Skip to content

In App Purchase Setup

Introduction

In this video, you'll learn how to implement In App Purchase in your mobile game using Mobile Monetization Pro.

IAP Manager Script

alt text

Fields Info
UIButtonThe button for the consumable item.
PriceTextText to display the price of the consumable item.
CanBuyInQuantityIf true, allows the item to be bought in a specific quantity.
ProductIdThe product ID for the consumable item.
AddScriptThe MonoBehaviour script to be added when the item is bought.
FunctionToInvokeThe function to invoke when the item is purchased.
FunctionParametersA list of parameters to pass to the function when invoking it.
UIButtonThe button for the non-consumable item.
PriceTextText to display the price of the non-consumable item.
ProductIdThe product ID for the non-consumable item.
RemoveAdsFromGameIf true, removes ads from the game when the non-consumable item is purchased.
AddScriptThe MonoBehaviour script to be added when the item is bought.
FunctionToInvokeThe function to invoke when the item is purchased.
FunctionParametersA list of parameters to pass to the function when invoking it.
CallFunctionOnRefundIf true, invokes the specified function when a refund occurs.
RestartAdsOnRefundIf true, restarts ads on refund.
AddScriptOnRefundThe MonoBehaviour script to be added on refund.
FunctionToInvokeOnRefundThe function to invoke on refund.
FunctionParametersForRefundA list of parameters to pass to the function on refund.
UIButtonThe button for the subscription item.
PriceTextText to display the price of the subscription.
ProductIdThe product ID for the subscription item.
AddScriptThe MonoBehaviour script to be added when the subscription is purchased.
FunctionToInvokeForActivatingSubscriptionThe function to invoke for activating the subscription.
FunctionToInvokeForDeactivatingSubscriptionThe function to invoke for deactivating the subscription.
ActivationFunctionParametersA list of parameters to pass to the activation function when activating the subscription.
DeactivationFunctionParametersA list of parameters to pass to the deactivation function when deactivating the subscription.