Tebex
For Minecraft and FiveM/RedM sellers on Tebex. Every completed payment issues one license per package; refunds and lost disputes revoke it, open disputes suspend it.
Setup
- Integrations → Tebex → Connect. Map Tebex package IDs to policies (or
*), and paste the webhook secret (step 3) when you have it. - Tebex control panel → Developers → Webhooks → Endpoints → Add endpoint, URL = the hook URL. Select
payment.completed,payment.refunded,payment.dispute.opened,payment.dispute.won,payment.dispute.lost. - Copy the endpoint's webhook secret into the integration, then click Validate in Tebex. SunLicense answers Tebex's validation webhook automatically.
- Tell buyers where to get their key: put the integration's redeem link in the package description or your store's thank-you message. They enter the
tbx-…transaction ID and their email.
Security
X-Signature is checked on every request (HMAC-SHA256 of the SHA-256 of the body, with your webhook secret). Unsigned or wrongly signed requests are refused.
Behaviour
| Tebex sends | SunLicense does |
|---|---|
validation.webhook | Answers with its id so Tebex activates the endpoint |
payment.completed | One license per mapped package; the buyer's name and email are stored |
payment.refunded, payment.dispute.lost | Revokes |
payment.dispute.opened | Suspends |
payment.dispute.won | Reinstates |
