简体   繁体   中英

where i code Huawei In-app purchase on android studio and how i link my app with IAP

this app secren for payment:

在此处输入图片说明

I want to pair these buttons with Huawei iap

You can create multiple offerings in the PMS. According to the buttons you give, you can create offerings with the same price in the PMS. 0.99$,1.99$,2.99$,4.99$ Four items.

If your offering is a consumable offering (that is, the offering can be purchased multiple times after being used), you can create a consumable offering. After purchasing the consumable offering, you need to invoke the consumption interface . That way, you can continue to purchase the item next time.

Huawei developer guide has very detailed info. to guide you through how to use HMS IAP to set up purchases for consumables. Please refer to: https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/purchase-subscription-process-0000001050130250#section1328194682617

Also here is an example of HMS IAP kit usage for consumables: https://forums.developer.huawei.com/forumPortal/en/topic/0201235405819660101?fid=0101187876626530001

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM