Enhance WHMCS integration with mTLS support and product mapping features. Added mTLS configuration options, updated API endpoints for mTLS status and fingerprint registration, and implemented product validation API. Updated database schema and documentation accordingly.
Some checks failed
CI / Node — lint, typecheck, test, build (push) Failing after 9s
CI / Go — node-agent tests (push) Failing after 8s
CI / Go — edge-gateway build (push) Successful in 18s

This commit is contained in:
smueller
2026-06-30 13:17:12 +02:00
parent 4b20efe4bc
commit 316679a913
34 changed files with 1174 additions and 30 deletions

View File

@@ -5,6 +5,7 @@ if (!defined('WHMCS')) {
}
require_once __DIR__ . '/lib/ApiClient.php';
require_once __DIR__ . '/../../../lib/ProductMapping.php';
function hexagamecloud_MetaData(): array
{
@@ -59,10 +60,10 @@ function hexagamecloud_CreateAccount(array $params): string
'externalServiceId' => $externalServiceId,
'externalClientId' => $externalClientId,
'externalProductId' => (string) ($params['pid'] ?? ''),
'planSlug' => $params['configoption1'] ?: 'free',
'planSlug' => HexaGameCloudProductMapping::resolvePlanSlug($params),
'serverName' => $params['domain'] ?: ('server-' . $externalServiceId),
'minecraftVersion' => $params['configoption2'] ?: '1.21.1',
'softwareFamily' => $params['configoption3'] ?: 'VANILLA',
'minecraftVersion' => HexaGameCloudProductMapping::resolveMinecraftVersion($params),
'softwareFamily' => HexaGameCloudProductMapping::resolveSoftwareFamily($params),
'edition' => 'JAVA',
'eulaAccepted' => true,
]);
@@ -101,7 +102,7 @@ function hexagamecloud_ChangePackage(array $params): string
try {
$client = new HexaGameCloudApiClient($params);
$client->changePackage((string) $params['serviceid'], [
'planSlug' => $params['configoption1'] ?: 'free',
'planSlug' => HexaGameCloudProductMapping::resolvePlanSlug($params),
]);
return 'success';
} catch (Throwable $exception) {