public function __construct(Configuration $cfg) { $this->cfg = $cfg; $this->endPoint = $cfg->useSandbox() ? self::SANDBOX : self::LIVE; }