blob: f9eff1ca2e2dbdbe3485fe596f5b007cb52e0a7f (
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
|
<?php
namespace PayPalCheckoutSdk\Core;
use PayPalHttp\Environment;
abstract class PayPalEnvironment implements Environment
{
private $clientId;
private $clientSecret;
public function __construct($clientId, $clientSecret)
{
$this->clientId = $clientId;
$this->clientSecret = $clientSecret;
}
public function authorizationString()
{
return base64_encode($this->clientId . ":" . $this->clientSecret);
}
}
|