💰In-App Purchases

A comprehensive guide on the implementation of in-app purchases using the HMS Unity plugin for mobile game development.

About the Service

Last updated: 2022-08-05

HUAWEI In-App Purchases (IAP) enables you to sell digital products and content directly within your app. To make in-app purchases available in your app, you only need to integrate the IAP SDK and then call its API to launch the IAP checkout screen.

With IAP, you can offer the following types of digital products and content within your app:

  • One-time products: Users can purchase with a single, non-recurring charge. There are two types of one-time products.

    • Consumables: Such products are depleted as they are used and can be purchased again, for example, in-game currencies and items.

    • Non-consumables: Such products are purchased once and never expire, for example, extra game levels in a game or permanent membership of an app.

  • Subscriptions: They provide users with ongoing access to content or services in your app. Users are charged on a recurring basis until they decide to cancel. Examples include non-permanent memberships of an app, such as a monthly video membership.

Checkout Screens

  • On a phone

Supported Devices

Device TypeOS VersionHMS Core (APK) Version

Huawei phone and tablet

EMUI 3.0 or later

3.0.0 or later

Non-Huawei Android phone

Android 4.4 or later (API level 19 or higher)

3.0.0 or later

Use Cases

HUAWEI IAP provides a Product Management System (PMS) through AppGallery Connect for you to manage your products after adding their information including ID and price. Your app with HUAWEI IAP integrated will display the product information in the local language and also show the price in the local currency based on the location and exchange rate, facilitating global distribution for your app.

Read the following to get the necessary information about the PMS of the latest version:

  • App release: You can release an app (gaming app or other) worldwide with one package and manage the prices and languages of in-app products. You will see the countries and regions supported by the PMS on its price settings page.

  • Currency and language settings: The PMS presets one default language and one default currency for each country or region. Only one language is allowed for each country or region.

  • Pricing: Huawei provides a reference price for each country or region based on the price (tax included) you set and the exchange rate. You can change the reference price for each country or region as needed. For example, if you enter one euro, the system automatically sets the prices for other countries and regions based on the exchange rates. If the EUR-to-CNY exchange rate is 7.88, the system automatically sets the price for China to CNY7.88. You can change the price as needed.

  • Exchange rate: The PMS provides fixed exchange rates by which Huawei will update prices. Exchange rate updates by Huawei have no impacts on your product prices. You should manually change your product prices if needed.

  • Intended audience: The PMS is available for global developers. To release your app (gaming app or other) to multiple countries or regions, you need to manage the price and language settings for in-app products to show the price in the local currency and the product description in the local language.

Last updated