Redemption Codes
The redemption code feature, Jogos platform is responsible for helping developers manage the distribution and usage status of all CDkeys in the game; but is not responsible for managing the distribution of rewards or items within the game.
Create Redemption Codes
Developers generate usable CDkeys themselves; and upload the CDkeys you generated to the developer backend. CDkey types are divided into two:
- Universal Code: Only input 1 CDkey; all players can use the same code to redeem the same rewards, each player is limited to one use;
- Unique Code: Need to upload multiple CDkeys; one code, no matter who uses it, can only be used once; Jogos platform will help you manage the quantity of CDkeys you uploaded; allocation status, usage status, and expiration status.
Channels for distributing CDkeys:
- Players obtain for free: Every user can obtain it on the game details page, and may also have a probability of obtaining it during video ad viewing.
- Follow platform activities: Users participate in platform activities and obtain conditionally.
Verify Redemption Codes, Distribute Rewards
When logged-in users obtain redemption codes through participating in activities or other methods, Jogos provides the function to copy already obtained CDkeys within the game, users copy and use them in the game.
javascript
/**
* Redeem prizes
* @param cdkey Redemption code
*/
await window.JOGOS_SDK.game.exchangePrizes(cdkey: string);