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

254 Views Asked by At

this app secren for payment:

enter image description here

I want to pair these buttons with Huawei iap

2

There are 2 best solutions below

0
On

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

0
On

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.