-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphp-sdk-fix.patch
More file actions
28 lines (23 loc) · 2.21 KB
/
php-sdk-fix.patch
File metadata and controls
28 lines (23 loc) · 2.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From 4e9a662f6ba8299d6687f3faffb19ad27ff09c89 Mon Sep 17 00:00:00 2001
From: VoxHash <15043788+VoxHash@users.noreply.github.com>
Date: Thu, 18 Dec 2025 00:40:58 -0500
Subject: [PATCH] fix: Update license validation endpoint and parameter -
Change endpoint from /licenses/validate to /licenses/verify - Change
parameter from license_key to key to match API specification
---
src/Services/LicenseService.php | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/Services/LicenseService.php b/src/Services/LicenseService.php
index 20af3e8..57abb60 100644
--- a/src/Services/LicenseService.php
+++ b/src/Services/LicenseService.php
@@ -59,7 +59,8 @@ class LicenseService
{
Utils::validateNotEmpty($licenseKey, 'license_key');
- $response = $this->client->post('/licenses/validate', ['license_key' => $licenseKey]);
+ // Use /licenses/verify endpoint with 'key' parameter to match API
+ $response = $this->client->post('/licenses/verify', ['key' => $licenseKey]);
return $response['valid'] ?? false;
}
--
2.51.0.windows.1