diff options
Diffstat (limited to '')
-rw-r--r-- | vendor/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Core/PayPalHttpClient.php | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/vendor/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Core/PayPalHttpClient.php b/vendor/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Core/PayPalHttpClient.php index 3b3c205..699cc0e 100644 --- a/vendor/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Core/PayPalHttpClient.php +++ b/vendor/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Core/PayPalHttpClient.php @@ -1,27 +1,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(); - } -} - +<?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();
+ }
+}
+
|