app/Plugin/PayPalCheckout42/Lib/PayPalCheckoutSdk/Core/PayPalHttpClient.php line 12

Open in your IDE?
  1. <?php
  2. namespace Plugin\PayPalCheckout42\Lib\PayPalCheckoutSdk\Core;
  3. use Plugin\PayPalCheckout42\Lib\PayPalHttp\HttpClient;
  4. class PayPalHttpClient extends HttpClient
  5. {
  6.     private $refreshToken;
  7.     public $authInjector;
  8.     public function __construct(PayPalEnvironment $environment$refreshToken NULL)
  9.     {
  10.         parent::__construct($environment);
  11.         $this->refreshToken $refreshToken;
  12.         $this->authInjector = new AuthorizationInjector($this$environment$refreshToken);
  13.         $this->addInjector($this->authInjector);
  14.         $this->addInjector(new GzipInjector());
  15.         $this->addInjector(new FPTIInstrumentationInjector());
  16.     }
  17.     public function userAgent()
  18.     {
  19.         return UserAgent::getValue();
  20.     }
  21. }