Integration error PagSeguro Laravel

1
  

{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

link

view

link

    
asked by anonymous 06.09.2018 / 17:09

0 answers