JDK version: 1.8 or later
HUAWEI DevEco Studio version: 2.1 or later
No. | Step | Description |
|---|---|---|
1 | Configure app information in AppGallery Connect, including registering as a developer, enabling the Merchant Service, creating an app, generating a digital certificate and a debug profile, adding the signing configuration, generating a signing certificate fingerprint, configuring the signing certificate fingerprint, enabling IAP, and setting IAP parameters. | |
2 | Integrate the IAP SDK into your app. | |
3 | Create and configure your products in AppGallery Connect and pass the product ID and type when your app calls the API for in-app purchases. | |
4 | IAP supports the following types of products: consumables, non-consumables, and subscriptions. Purchase Implementation tells how to implement the processes of purchasing the three types of products. If your app provides consumables, you have to do another task, that is, implementing the redelivery process for consumables. If you want to learn more about subscriptions, see Subscription Functions. Develop functions based on your service needs. | |
5 | (Optional) Server-Side Development | The task of performing server-side development is necessary when you need to call APIs of the IAP server (for example, the order service needs to call the purchase token verification API provided by the IAP server) or some complex service logic needs to be implemented but your app cannot achieve it by itself. |
6 | Check your app before release according to the Pre-release Checklist. | |
7 | Complete your app information in AppGallery Connect, and submit your app for release. |