Skip to content

Virtual currency, inventory and sales

The bank for your game

Sell your web or mobile game's currency. GameCoin keeps the ledger of balances, the inventory of items and the orders, so you don't have to write them yourself.

In the test environment, payment is simulated: no money moves.

JavaScript SDK integration example
const gc = await GameCoin.init({
  publishableKey: "gc_pk_test_…",
});

gc.on("change", ({ wallet }) => render(wallet));

buy.onclick = () => gc.checkout("starter-pack");

Player wallet

Example

Balance · Gems

520

Test

500 paid20 bonus

Ledgerentries are never edited

  1. +500paidPack gems-500
  2. +50bonusBonus with the pack
  3. −30bonusSpend: revive

The real work

Selling coins takes more than a “Buy” button

As soon as a player pays for virtual currency, your game has to answer questions that have nothing to do with gameplay.

  • The ledger

    Who owns how much, with no double spending when two requests cross, and the history of every movement.

  • VAT

    The displayed price includes tax and the rate depends on the buyer's country: the order keeps the price, the country and the VAT of the moment.

  • Refunds

    Refunding an order also means taking back the coins and items already delivered, without breaking the player's balance.

GameCoin handles these three topics in one place. You keep your game.

Integration

Three ways to integrate it

Pick the one that fits your game. You can switch or combine them later.

  • No backend

    JavaScript SDK

    One script tag: GameCoin creates an anonymous player, remembers their balance and opens the payment window. For a game that runs entirely in the browser.

    See the no-backend path
  • With a backend

    Server API

    Your server registers its players, credits, spends and refunds with a secret key. Every write is idempotent: a replay only counts once.

    See the backend path
  • No code

    Dashboard

    Create your currencies, items and packs, get your API keys, browse players, the ledger and orders, and refund from an order's page.

    Create an account

Today

Available today

Everything below works, in the test environment.

  • Paid and bonus ledger

    Each currency has a paid balance and a bonus balance. Every movement is an entry that is never edited.

  • Inventory

    Consumable or durable items, bought with the game's currency and consumed by the player.

  • Packs in euros

    Hosted payment, simulated in test. VAT is computed by country, and a refund takes back the coins and items.

  • API v1

    Server and client, idempotent, with rate limits and documented errors.

  • SDK, demo and guide

    A dependency-free JavaScript file, a demo game to open from your game, a step-by-step guide.

Coming soon. Not here yet: real payments, the hosted shop, codes and ready-made offers. Today, everything happens in the test environment.

Server side

Server SDKs

Your backend talks to GameCoin with a secret key. Five server SDKs are written and documented, dependency-free, with idempotency and automatic retries. They are not published to the package registries yet; the v1 API can also be called directly.

  • Node.jsPre-release 0.1.0
  • PythonPre-release 0.1.0
  • PHPPre-release 0.1.0
  • GoPre-release 0.1.0
  • C#Pre-release 0.1.0

Try it in a few minutes

Create an account, add a currency and a pack, then open the demo: you see the balance move live.