D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
dateitor
/
www
/
vendor
/
paypal
/
paypal-payouts-sdk
/
lib
/
PaypalPayoutsSDK
/
Core
/
Filename :
PayPalHttpClient.php
back
Copy
<?php namespace PaypalPayoutsSDK\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(); } }