Mobile Master IAP

The Mobile Master IAP is a complete and latest In-App-Purchase system available for mobile for both Android and IOS.

It uses the latest Google IAP and Apple IAP SDK for Cordova.

The best benefit for this plugin is that it supports all editors and runtimes of Construct. Both, Construct 2 and Construct 3.

There are two special features exclusive to this plugin, to wit:

  • Subscriptions

  • Server validation with data credentials.

This plugin is both easy to use and full-packed with tools and features to achieve complete application in-app purchases.

Intstructions

1. The first step is to add the Mobile Master IAP addon into the project.

2. If the application is for Android, create a manifest.json
or import the pre-made one from the addon documentation.
The manifest.json should contain the key "play_store_key", then set the value "<your_public_key>", fill in your own app public key.
Skip this step for iOS projects.

As of now, there is no way to make this easier, you may contact us if your company need it simplified.

3. The IAP requires your application to be fully configured from the platform console.
That includes the store listing, default pricing, localized pricing, etc. It also needs to be released, even if just on beta-release. Otherwise, it won't run properly.

Please do take note, this is a very crucial step!

4. To test purchases, it is important to add your account to your app's testing group.

5. If the purchasing dialog shows that the product is not available for this user or application, please check if your in-application products are available to the country location set in your account and if the local price for that country is set.
Also, check if instruction
#4 above is also set properly.

5. Lastly, from the plugin properties. If the Debug Mode is enabled, the addon will log errors in the console.
This is available during debugging from the Android Studio, XCode, Chrome Developer Console and Safari Web Inspector.

 

Features

The Mobile Master IAP is a monetization addon for in-app purchases for both android and ios. It's from the Mobile Master Collection under the Construct Master Collection and supports both Construct 2 and Construct 3 with also supporting both the c2runtime and c3runtime.

Features :

  • Complete Google IAP SDK features.

  • Complete Apple IAP SDK features.

  • Easy to use and no programming required.

  • Well-supported and fully tested.

  • PDF documentation support.

  • Fingerprint support & other new features.

  • Non-consumables

  • Consumables

  • Subscriptions

  • Server validation implementation.

  • Server validation data.

  • Store product details.

  • Construct 2 editor support.

  • Construct 3 editor support.

  • Construct 2 runtime.

  • Construct 3 runtime.

  • C3 Build Service, PhoneGap.

  • Cordova CLI & Android Studio.

 

Actions, Conditions & Expressions

Actions

Actions.png
  • Initialization :

    • Initialize - Initialize after all the products and subscriptions are installed. Initialize all before continuing further.

  • Install Product - Install the product to be listed for initialization. Install before initializing.

    • Product ID- The Product ID enlisted from the store.

    • Product Type - Type of product. Consumables are products that can be bought again.

  • Install Subscription - Install the subscription to be listed for initialization. Install before initializing.

    • Product ID- The Product ID enlisted from the store.

Monetization :

  • Purchase - Purchase the product.

    • Product ID - The Product ID enlisted from the store.

  • Subscribe - Subscribe the product.

    • Product ID- The Product ID enlisted from the store.


App Sync :

  • Restore Purchases - Restore the unconsumed products that were bought.

Conditions

Initialization :

  • On Initialize Succeeded - Triggered when the initialization process from installing the products has succeeded.

  • On Initialize Failed - Triggered when the initialization process from installing the products has failed.

  • Is Initialized - Checks if the initialization process from installing the products has already been completed.

Conditions.png

App Sync :

  • On Restore Succeeded - Triggered when a restore purchases attempt has succeeded.

  • On Restore Failed - Triggered when a restore purchases attempt has failed.


Debugging :

  • On Error - Triggered when an error occurs. The Expression 'ErrorMessage' will return the error message.


Monetization :: Purchase :

  • On Purchase Succeeded - Triggered when a purchase attempt has succeeded.

  • On Purchase Failed - Triggered when a purchase attempt has failed.

  • Compare Purchase ProductID - "On Purchase Succeeded" or "On Purchase Failed", a Purchase attempt

    • Product ID - The Product ID enlisted from the store.


Monetization :: Subscription :

  • On Subscription Succeeded - Triggered when a subscription attempt has succeeded.

  • On Subscription Failed - Triggered when a subscription attempt has failed.

  • Compare Subscription ProductID - "On Subscription Succeeded" or "On Subscription Failed", a Subscription attempt

    • Product ID - The Product ID enlisted from the store.


Monetization :: Universal :

  • For Each Product - Loop through all the installed in-app purchase products.

  • Has Paid Product - Check if a Non-Consumable Product or a Subscription is bought or active.

    • Product ID - The Product ID enlisted from the store.

Expressions

Debugging :

  • errorMessage - Return the Error Message from the Mobile IAP plugin when the 'On Error' is triggered.

Initialization :: Recent :

  • recentPurchaseProductID - Return the recent Purchase Product ID that was attempted. "" if null.

  • recentSubscriptionProductID - Return the recent Subscription Product ID that was attempted. "" if null.

Initialization :: Get Data :

  • getProductTitle - Return the Product Title from a Product ID. "" if null.

    • "ProductID" - The Product ID enlisted from the store.

  • getProductDescription - Return the Product Description from a Product ID. "" if null.

    • "ProductID" - The Product ID enlisted from the store.

  • getProductCurrency - Return the Product Currency from a Product ID. "" if null.

    • "ProductID" - The Product ID enlisted from the store.

  • getProductLocalizedPrice - Return the Product Localized Price from a Product ID. "" if null.

    • "ProductID" - The Product ID enlisted from the store.

  • getProductDecimalPrice - Return the Product Decimal Price from a Product ID. '-1' if null.

    • "ProductID" - The Product ID enlisted from the store.

  • getProductType - Return the Product Type. '0' for Non-Consumables, '1' for Consumables and '2' for Subscriptions. '-1' if null.

    • "ProductID" - The Product ID enlisted from the store.


Initialization :: For Each :

  • loopProductID - Return the loop Product ID from a 'For Each Product'. "" if null.


Validation :: Get Data :

  • getTransactionID - Return the purchase/subscription transaction/order id.

    • "ProductID" - The Product ID enlisted from the store.

  • getReceipt - Return the purchase/subscription receipt. On iOS it will be the base64 string of the receipt, on Android it will be a string of a json with all the transaction details required for validation.

    • "ProductID" - The Product ID enlisted from the store.

  • getSignature - Return the purchase/subscription signature. On Android it can be used to consume a purchase. On iOS it will be an empty string.

    • "ProductID" - The Product ID enlisted from the store.


Purchase / Subscription :

  • curTransactionID - Return the transaction/order id from the current purchase/subscription.

  • curReceipt - Return the receipt from the current purchase/subscription.

  • curSignature - Return the signature from the current purchase/subscription.

  • curProductID - Return the product id from the current purchase/subscription.

Properties

Universal - General Plugin Properties.

  • Debug Mode - If "Enabled", the runtime will log errors. This should be "Disabled" on production.

    • Enabled

    • Disabled

 
 

User Manual

The Mobile Master IAP has a built-in user manual, you can read it for more information.

The manual is not a replacement for the Google Developer documentation or the Apple Developer documentation, it's of upmost importance to reads those too.
 

We will not be liable for any violation or malpractice use of all the addons or used services in the collection, including the Mobile Master IAP. So, please read each official documentation too.

 

Feature Showcase

 
 

Android Sample Project

Sample Setup Project

Specifications

  • Instructions - The sample project has comments and instructions on how to use the addon and its features.

  • A.C.E. Coverage - It covers the implementation of each action, condition and expression.

  • Tips and Tricks - It provides some tips and tricks to a better use of the addon and of the event-sheet system alongside it.

Supporters

Only

iOS Sample Project

Sample Setup Project

Specifications

  • Instructions - The sample project has comments and instructions on how to use the addon and its features.

  • A.C.E. Coverage - It covers the implementation of each action, condition and expression.

  • Tips and Tricks - It provides some tips and tricks to a better use of the addon and of the event-sheet system alongside it.

Supporters

Only

Get the tools

for your pro games!

Constuct Master Collection - Itch.io
Constuct Master Collection - Discord
Constuct Master Collection - Construct 3

© Construct Master Collection 2020 • All rights reserved

Contact Information: