Skip to content

Payments: samples

João Raimundo edited this page Nov 21, 2018 · 13 revisions

Gitter chat

HTTP Intent example

The URL data sample:

Parameter Value Description
value 2.5 The value in APPC (AppCoins) of the transaction.
currency APPC The currency in which the value is sent. By default is APPC if not set on the URL.
to 0xab949343e6c369c6b17
c7ae302c1debd4b7b61c3
The wallet address of the receiver of the transaction. It can be overridden if does not match with the address defined for the given domain.
product gems.001 The id of the item being bought.
domain com.mygamestudio.game The application id, also known as package name.
data 100 Gems Additional information to be sent if needed.
callback_url https://www.mygamestudio.com/appcoins?out_trade_no=1234 The URL to be called after the transaction is completed. The URL is afterwards completed with additional parameters for purchase validation.

The URL sample

https://apichain.blockchainds.com/transaction/inapp?value=2.50& currency=APPC&to=0xab949343e6c369c6b17c7ae302c1debd4b7b61c3&product=gems.001&domain=com.mygamestudio.game&data=100+gems&callback_url=https://www.mygamestudio.com/appcoins?out_trade_no=1234