Coins
Purchase microtransaction coins at one of four tiers. Debits the player wallet and credits your game's revenue summary.
// POST /api/game-sdk/coins/tier-10
await fetch('/api/game-sdk/coins/tier-10', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
userId: 'usr_4982',
gameId: ctx.gameId,
sessionId: ctx.sessionId,
}),
});
// Tiers: 10 / 50 / 150 / 400