FAQ
What is Tebex?
Tebex is a payments and monetization platform designed for game developers. Our Unity SDK lets you embed a fully functional in-game store without requiring your own payment infrastructure.
Tebex handles payment processing, currencies, VAT, gift cards, coupons, and subscriptions. You focus on what to sell and what happens when a player buys it.
Does Tebex support subscriptions?
Yes! In addition to one-time purchases (such as for consumables, DLC, and cosmetics), we support both recurring subscriptions as well as tiered memberships.
Do you include a pre-built UI?
Yes, we include both a Store Browser and In-Game Cart to render your store and a player's cart dynamically in-game. This uses no external dependencies and can be drawn on the Canvas you specify.
Can I use the API without the pre-built UI components?
Yes. HeadlessApi is a standalone class. You can call it directly to build your own UI:
var api = HeadlessApi.GetInstance(new UnityHeadlessAdapter(), "your-public-token");
await api.GetAllCategoriesIncludingPackagesAsync(
onSuccess: categories => { /* populate your own UI */ },
onApiError: err => Debug.LogError(err.detail),
onServerError: err => Debug.LogError(err.Body)
);Do I need a backend/API to use Tebex?
No backend is required for the purchase or fulfillment flow.
The Headless API and all TebexUnity components included with our SDK work entirely from the Unity client using your store's public token. See Implementation Guidefor more details.
If your game implements private servers and can run commands, we provide a Plugin API and example plugin that fulfils these commands. See Plugin API for more information.
Tebex can also send webhooks for various events to endpoints you control. See Webhooks for further detail.
What are the two API types and when do I use them?
Headless API is for browsing the store's available packages, creating baskets, and checking out the user. For most Unity games, Headless API will suffice.
Plugin API is intended for dedicated servers that need to deliver player rewards.
Is there a demo scene I can reference?
Yes, open the scene at Assets/Tebex/Veilborn/Veilborn.unity.
This is a complete example store built around a fantasy game theme ("Veilborn") that demonstrates the StoreBrowser, InGameCart, and Deliverables components of the Unity SDK working together, along with QR code checkout.
Are there any dependencies?
There are no external dependencies for our Unity SDK. JSON encoding uses Unity's internal tooling.
How do I get my public token?
Login to your store at https://creator.tebex.io/, select Integrations > API Keys. Your Public Token is displayed on this page.
Quick link: https://creator.tebex.io/developers/api-keys
Can I add Tebex to an existing scene?
Yes! Adding Tebex can be done in just a few steps:
Create a
Canvasin your scene (or use an existing one).Add the
StoreBrowsercomponent to aGameObjecton that canvas.Assign your Store Public Key in the Inspector.
Assign a
TMP_FontAssetand any branding textures you want to use.Optionally attach an
InGameCartcomponent and link it toStoreBrowser.Press Play - the SDK fetches your store data automatically.
Does payment happen inside the game?
Payment does not happen inside the game.
When the player is ready to check out, the SDK opens the basket.links.checkout URL in the player's browser (or displays it as a QR code for mobile checkout).
Tebex's hosted page handles all payment collection. After payment, the basket's complete flag is set to true, and the Deliverables component detects this via polling.
This approach means you are never handling card numbers or payment data inside Unity.
How do I know when a player has paid, so I can give them their reward?
Use the Deliverables component. Register a callback for each package you sell:
Deliverables polls the basket every few seconds. When basket.complete is true, it fires every registered callback for the purchased packages.
Is it safe to include my store's public token in the game client?
Yes. The public token is designed to be client-visible. It only allows reading store data and managing baskets - it cannot access financial data, ban players, or modify your store.
Never ship the Plugin API secret key in a game client. The secret key is for server-to-API use only.
Last updated