Skip to content

AppCoinsIAB contract

Gustavo Rios de Sousa e Silva edited this page Aug 21, 2018 · 4 revisions

Features

Make in-app purchases
Purchase in-app items

How to test

How to make in-app purchases

  1. Call the method buy. You need Gas to run this command.

This method is usually called using the Android wallet. Once an application integrates the In-app Billing functionality of AppCoins Protocol, an in-app item purchase can be processed using AppCoins. When this happens, the AppCoins Android SDK will communicate with the Android wallet which later submits a buy call to the IAB contract with the following arguments:

Name Description
sku item id
packagename Campaign's package name
amount value in AppCoins of the item bought
appCAddr AppCoins contract address
dev developer's wallet address
appstore appstore's wallet address
oem oem's wallet address
countryCode country code (hexa)