File "PayPalHttpClient.php"
Full path: /home/orbitecv/orbite-school.orbit.et/vendor/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Core/PayPalHttpClient.php
File size: 693 B
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Edit Back
<?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();
}
}