{message: "cURL error 3: malformed (see link ), ...} exception: "GuzzleHttp \ Exception \ RequestException" file: "C: \ wamp64 \ www \ laravel-pagseguro \ vendor \ guzzlehttp \ guzzle \ src \ Handler \ CurlFactory.php" line: 186
Model
public function getSessionId()
{
$params = $this->getConfigs();
$params = http_build_query($params);
$guzzle = new Guzzle;
$response = $guzzle->request('POST', config('pagseguro.url_transparent_session'), [
'query' => $params,
]);
$body = $response->getBody();
$contents = $body->getContents();
$xml = simplexml_load_string($contents);
return $xml->id;
}
Config
view