Forum Replies Created

Viewing 16 replies (of 16 total)
  • Hi, I installed your update and it still doesn’t work. I double-checked my API settings and they’re all correct. Help please 🙂

    Here’s the section of code in paypal.class.php after your update:

    function CURLRequest($Request = “”, $APIName = “”, $APIOperation = “”)
    {
    $curl = curl_init();
    // curl_setopt($curl, CURLOPT_HEADER,TRUE);
    curl_setopt($curl, CURLOPT_VERBOSE, 1);
    curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);
    curl_setopt($curl, CURLOPT_SSL_CIPHER_LIST, ‘TLSv1’);
    curl_setopt($curl, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1);
    curl_setopt($curl, CURLOPT_TIMEOUT, 30);
    curl_setopt($curl, CURLOPT_URL, $this->EndPointURL);
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($curl, CURLOPT_POSTFIELDS, $Request);

    if($this->APIMode == ‘Certificate’)
    {
    curl_setopt($curl, CURLOPT_SSLCERT, $this->PathToCertKeyPEM);
    }

    $Response = curl_exec($curl);
    curl_close($curl);
    return $Response;
    }

Viewing 16 replies (of 16 total)