In-App Purchase API
Your app gains access to the in-app purchase service by connecting to the Myket client on the user’s device. Myket then manages the interaction between your app and the payment system. Practically, your app never directly interacts with this system; instead, your app sends requests (through the Android IPC mechanism) to Myket and receives responses.
Please note that for in-app purchases to be completed, Myket must be installed on the user’s device and have access to the internet.
In-App Products
In-app products are digital goods that you offer users for purchase within your app. Examples of digital goods include in-game currency, account upgrades to premium versions, special features not available in the free version, or new content for your app. In-app purchases can only be used to sell digital content. They cannot be used to sell physical goods or anything requiring physical delivery. Myket assumes no responsibility for the digital content you offer; the app owner is solely responsible for this content. In-app products are always linked to a single app, meaning one app cannot purchase a product intended for another app, even if both are by the same developer. However, you may create and offer different digital products for your other apps.
Types of In-App Products
You can define products as either “consumable” or “non-consumable” in the developer panel. Define products that users need to purchase multiple times with temporary benefits as consumable, and products that users need to buy only once with a permanent effect as non-consumable. The difference is that if a consume request is sent for a non-consumable product, Myket will not consume the product and will notify the app that the operation failed. This way, a product that the user expects to buy only once will not be consumed.
In-App Purchase Features
Requests are sent through a simple API, allowing you to request product details, order products, and easily retrieve a list of products owned by the user. All purchases are managed by Myket, which records the user’s ownership of products. Users cannot own multiple instances of the same product; only one instance can be held at any given time. Consumable products that have been purchased can be consumed. Once consumed, a product returns to an “unowned” status and can be repurchased from Myket.
Myket Developer Panel
The developer panel is where you can publish your apps and manage various digital products for in-app sales. You can define as many digital products as you need for your app. For each product, you can specify attributes such as product ID (SKU ID), price, consumable/non-consumable status, and description.
Starting a Payment on the User’s Device
When a user buys an in-app product, they encounter various payment gateways like IPG, wallet, etc., and can complete the purchase like any other online transaction.
To initiate a purchase, your app sends a purchase request for a specific product. Myket then handles all aspects, including the request, payment form validation, and financial processing. Once the payment process is completed, purchase details—such as the order number, order date and time, and price—are sent to your app, along with a receipt for the user. At no point is your app responsible for handling financial matters, as Myket’s payment system manages everything.