These are the official C# mappings for Tebex APIs. Tebex is a gaming-focused payments processor that allows you to easily set up your game or backend for monetization.
- Clone this repository to a folder on your PC, or use a pre-built DLL from our Releases.
- Add Tebex-CSharp as a Dependency to your solution.
- Headless API Integration: A complete C# implementation for Headless API used for retrieving packages and creating baskets.
- Plugin API Support: A complete C# implementation for Plugin API, which enables automated command execution after payment on a game server.
- Example Plugin: We've included an example TebexCorePlugin for to demonstrate how a basic Tebex integration should operate. This is a feature-complete plugin that executes commands on a game server.
Tebex allows game studios and/or players to set up a digital storefront and sell Packages. Packages can include deliverables such as Game Commands, License Keys, Downloads, and more.
Your storefront may be a website or fully integrated into your game using Headless API.
Originally known as Buycraft, Tebex supports an expanding library of games, including:
- Minecraft
- Rust
- ARK: Survival Evolved
- FiveM
- Garry's Mod
- Unturned
This repository serves as our full Tebex SDK for projects using C#. It is designed to be forked and modified for your particular requirements.
A minimal Tebex integration is expected to:
- Connect to a store via a secret key accessible from your Tebex account
- Allow the player to browse and select packages in that store, or, using the webstore only
- Add those packages to a Basket
- Direct the user to check out (performed in the browser)
- Deliver purchases to the player after payment in some way
Most typically, purchases are delivered via Game Commands (such as adding money, adding items, etc.) that are queued and executed every few minutes.
This repository includes an example TebexCorePlugin that will execute game commands.
For more advanced delivery methods, Tebex also provides Webhooks to allow fully custom handling of purchases on your own backend.
The Headless API allows you to browse a store and build a basket of items that can be purchased by the player. These are the same APIs used on our store websites.
The Plugin API allows you to check for deliverables that are due / purchases that have been made and then mark them completed once delivered successfully via a command.
Our implementation in TebexCorePlugin details how your game should interact with our APIs to deliver purchases in-game via console commands.
This assumes we are in a server environment that the game studio or the store creator controls.
If your setup does not deliver commands in-game, you can use our Webhooks to receive real-time purchase notifications and events on your own backend to deliver purchases.
We welcome contributions from the community. Please refer to the CONTRIBUTING.md file for more details. By submitting code to us, you agree to the terms set out in the CONTRIBUTING.md file
This repository is only used for bug reports via GitHub Issues. If you have found a bug, please open an issue.
If you are a user requiring support for Tebex, please contact us at https://tebex.io/contact