Skip to content

Commit

Permalink
PHP Version in client header (#56)
Browse files Browse the repository at this point in the history
Co-authored-by: Karol Wojciechowski <karol.wojciechowski@tpay.com>
  • Loading branch information
kwojc and Karol Wojciechowski committed Nov 27, 2023
1 parent e23fbf2 commit a242979
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Api/ApiAction.php
Expand Up @@ -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
Expand All @@ -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 = [])
Expand Down

0 comments on commit a242979

Please sign in to comment.