How to save purchase data
Description
Only registered partners can use this feature. Unregistered partners may test on the testnet using the secret key provided in the sample code.
This function is used by partners who support the payment system. The loyalty system's testnet is ready; you can use it for development, and once development is complete, you can switch to the mainnet.
Please create a wallet to be used with this feature and provide the wallet address to the loyalty system operations team.
For the testnet, the wallet's secret key to be used is: 0xa0dcffca22f13363ab5d109f3a51ca99754cff4ce4c71dccc0c5df7f6492beee
For the mainnet, create a wallet independently and deliver only its public address to the operations team.
The system adds purchase data received from trusted partners to the blockchain, which is then verified by validators. If the data is verified, the system provides the purchaser with points equivalent to a certain percentage of the purchase amount.
Development and Operation
Follow the steps below to proceed:
Development and Testing:
First, install the user app and set the network to testnet.
Review the test code and implement the necessary features. When creating SavePurchaseCent, use the wallet's private key: 0xa0dcffca22f13363ab5d109f3a51ca99754cff4ce4c71dccc0c5df7f6492beee (for testnet).
Purchaser’s wallet address recorded in the purchase data should be the wallet address from the user app.
Note: Testnet store IDs begin with “0x0003”.
Switching to Mainnet:
Generate a new wallet and use its private key to create SavePurchaseCent. You may use a wallet generated using MetaMask.
Send the wallet address created in step 1 to the KIOS operations team.
Cautions:
Both testnet and mainnet are always active, so ensure the system can handle both networks in the future.
If the store ID of the POS or KIOSK starts with "0x0003", use testnet information for SavePurchaseCent. If the store ID starts with "0x0004", use mainnet information.
SMS functionality is available only in Korea.
SDK
Last updated