The rule: verify, don’t trust
Never trust a player ID your game sends: anyone can send any ID. Have your game send the player’s access token instead, and let your server ask Gamavas who it belongs to. Gamavas only accepts live tokens that were issued to your game, so a token from another game, or one that’s expired or revoked, is refused.1. Create a secret key
On your app’s Keys page in the developer portal, create a key. Copy it once; Gamavas only stores a hash.gmv_sk_live_…for production,gmv_sk_test_…for test purchases.- Keep it on your server, in an environment variable. Gamavas refuses secret keys from browsers.
- If one leaks, revoke it on the same page and create a new one.
2. Send the token from your game
Send it however your game talks to your server, for example in an
Authorization header.
3. Verify it on your server
player.id as the key in your database. Profile fields and email follow what the player agreed to share.
What else your server can do
not_found. Unlocking needs the player to have allowed progress, which the SDKs always ask for.
The server SDK covers errors and options, and the API reference has every endpoint for other languages.
