目录

Enabling the In-App Purchases (HarmonyOS NEXT) API

To use Huawei's digital product service, you need to enable the In-App Purchases (HarmonyOS NEXT) API. This operation is at the app level, that is, you need to enable the In-App Purchases (HarmonyOS NEXT) API for each app that needs to use the digital product service.

  1. Sign in to AppGallery Connect and click My projects.
  2. Find and click a desired project in the project list.
  3. Click a HarmonyOS app for which you need to enable the In-App Purchases (HarmonyOS NEXT) API.

  4. Click the Manage APIs tab, find In-App Purchases (HarmonyOS NEXT), and toggle on the switch.

  5. If you have not enabled the Merchant Service when you toggle on the In-App Purchases (HarmonyOS NEXT) API switch, a dialog box will be displayed, prompting you to enable the Merchant Service and sign the Huawei Developer Merchant Service Agreement first.