blob: 699cc0e60a2c7b40d48e5a11c0754d6f4c99ee13 (
plain) (
blame)
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
|
<?php
namespace PayPalCheckoutSdk\Core;
use PayPalHttp\HttpClient;
class PayPalHttpClient extends HttpClient
{
private $refreshToken;
public $authInjector;
public function __construct(PayPalEnvironment $environment, $refreshToken = NULL)
{
parent::__construct($environment);
$this->refreshToken = $refreshToken;
$this->authInjector = new AuthorizationInjector($this, $environment, $refreshToken);
$this->addInjector($this->authInjector);
$this->addInjector(new GzipInjector());
$this->addInjector(new FPTIInstrumentationInjector());
}
public function userAgent()
{
return UserAgent::getValue();
}
}
|