Skip to content
GameCoinDocs
Dashboard

Going live

What separates the test environment from live, and the checklist to run through before real players pay you.

On this page

Where things stand

Your game works in test: payments are simulated, your data is disposable, and every studio can use it. live is the environment with real players, real payments and real money, and it is reserved for studios that Apilow has verified.

Note

Because the key picks the environment, nothing you build in test has to change to go live. You change the keys your server and your game read, and you complete the checklist below. Most of it you can prepare while you are still testing.

What changes between test and live

testlive
Who can use itEvery studioVerified studios only
PaymentsSimulated: the payment page offers « Payer » and « Refuser », and no money movesReal payments, with VAT and receipts
Keysgc_sk_test_… and gc_pk_test_…, created with the gamegc_sk_live_… and gc_pk_live_…, created after verification
CatalogYours to experiment withA separate catalog: copy it from test in one click
Players, balances, ordersDisposableYour real players. A test player does not exist in live and a balance never crosses over
Allowed originsAn empty list accepts every originAn empty list refuses every browser
Webhook endpointsReceive the events of simulated ordersReceive the events of real payments. Declare them again for live

The checklist

Go through these in order. Each step says where to do it.

#StepWhere
1Ask for verification. Give your legal name or the name of your company, its number (optional for an individual), the country of its head office and the website of the studio or the game. Apilow sells your coins in its own name, so it needs to know who you are. An answer usually comes by e-mail within two business days. Only an owner or an administrator can ask.« Paramètres » of the studio
2Finish the catalog in test. Currencies, items and packs, and a full run of the test plan.The game
3Copy the catalog into live. Packs arrive as drafts: nothing is on sale yet.« Copier le catalogue de test »
4Review and publish the packs. Check each price (VAT included), the stock and the sale window, then use « Publier ».« Packs », environment live
5Create your live keys. The secret key is shown once: store it in your server's secret manager.« Clés d'API »
6List the allowed origins. Every web page of your game that calls the client API, and where players return after a payment. Scheme and host only, with https://; no path and no wildcard.« Réglages »
7Declare your webhook endpoints for live. An endpoint only receives the events of its own environment.« Webhooks »
8Switch the keys. Your server reads the secret live key, your game the publishable live key. Nothing else in your code changes.Your deployment
9Make a small real purchase, then refund it. Check the balance, the receipt and the order.fulfilled and order.refunded events end to end.Your game, then « Commandes »

Tip

Keep the test keys in your staging setup and the live keys in production. Nothing you create with a test key is ever visible with a live key, so a missing player or pack right after a switch usually means that the wrong key is loaded.

Selling before you launch

If your game is not out yet, you can still sell in live. In « Réglages », under « Lancement », switch on pre-order and give an optional launch date: the shop presents purchases as pre-orders, receipts mention the date, and the coins wait on the player's wallet. This is how founder packs work.

What can go wrong

You seeIt meansDo this
403 ENV_NOT_ENABLED with a live keyYour studio is not verified, or its verification was withdrawnAsk for verification in « Paramètres », or write to the address in your last e-mail from Apilow
The browser's calls to the client API are refused in liveThe allowed origins list is empty or does not contain the pageAdd the exact https:// origin of the page in « Réglages », then reload
VALIDATION_FAILED with ORIGIN_MISMATCH on a browser checkoutThe successUrl or cancelUrl does not have the origin of the page that opened the checkoutBuild the URLs from the page's own origin
A pack is not on sale after the copyPacks are copied as draftsReview it, then use « Publier » in « Packs »
Events do not reach your serverThe live endpoint is not declared, or is declared only for testAdd it in « Webhooks » for the live environment

Your studio's status

StatusWhat it means for you
En attente de vérificationtest is open. live is closed.
VérifiéYou can create live keys and sell.
SuspenduThe workspace is read-only and live is closed. Write to the support address shown in the dashboard.

Apilow can also withdraw a verification: live closes, test stays open, and you can send a new request from « Paramètres ».

Where next