From a242979083699babbe528c1f2f3623eeb1afdfaf Mon Sep 17 00:00:00 2001 From: Karol Wojciechowski Date: Mon, 27 Nov 2023 11:58:53 +0100 Subject: [PATCH] PHP Version in client header (#56) Co-authored-by: Karol Wojciechowski --- src/Api/ApiAction.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Api/ApiAction.php b/src/Api/ApiAction.php index 480b57f..5e51146 100644 --- a/src/Api/ApiAction.php +++ b/src/Api/ApiAction.php @@ -27,7 +27,7 @@ class ApiAction /** @var bool */ private $productionMode; - private $clientName = 'tpay-com/tpay-openapi-php:1.6.3'; + private $clientName; /** * @param Token $Token @@ -39,6 +39,7 @@ public function __construct($Token, $productionMode) $this->Token = $Token; $this->Curl = new Curl(); $this->Manager = new Manager(); + $this->clientName = 'tpay-com/tpay-openapi-php:1.6.3|PHP:'.phpversion(); } public function run($requestMethod, $apiMethod, $fields = [], $requestBody = null, $headers = [])