Skip to content

Commit

Permalink
Merge pull request #240 from mercadopago/release/1.8.0
Browse files Browse the repository at this point in the history
Release 1.8.0
  • Loading branch information
delias-silva authored Jan 21, 2020
2 parents 4dcd9d0 + f91dbbb commit 0986581
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"type": "library",
"homepage": "https://github.com/mercadopago/dx-php",
"license": "MIT",
"version": "1.8.0",
"config": {
"platform": {
"php": "5.6"
Expand Down
1 change: 1 addition & 0 deletions src/MercadoPago/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@ protected function _setDefaultHeaders(&$query)
$query['headers']['Content-Type'] = 'application/json';
$query['headers']['User-Agent'] = 'MercadoPago DX-PHP SDK/ v'. Version::$_VERSION;
$query['headers']['x-product-id'] = 'BC32A7RU643001OI3940';
$query['headers']['x-tracking-id'] = 'platform:' . PHP_MAJOR_VERSION .'|' . PHP_VERSION . ',type:SDK' . Version::$_VERSION . ',so;';
foreach ($this->_customTrackingParams as $key => $value){
$query['headers'][$key] = $value;
}
Expand Down
3 changes: 2 additions & 1 deletion src/MercadoPago/RestClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ protected function setHeaders(Http\HttpRequest $connect, $customHeaders)
$default_header = array(
'Content-Type' => 'application/json',
'User-Agent' => 'MercadoPago DX-PHP SDK/ v' . Version::$_VERSION,
'x-product-id' => 'BC32A7RU643001OI3940'
'x-product-id' => 'BC32A7RU643001OI3940',
'x-tracking-id' => 'platform:' . PHP_MAJOR_VERSION .'|' . PHP_VERSION . ',type:SDK' . Version::$_VERSION . ',so;'
);
if ($customHeaders) {
$default_header = array_merge($default_header, $customHeaders);
Expand Down
2 changes: 1 addition & 1 deletion src/MercadoPago/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
class Version
{
public static
$_VERSION = '1.7.0';
$_VERSION = '1.8.0';
}

0 comments on commit 0986581

Please sign in to comment.