title: Paypal express payout error SetExpressCheckout failed: Could not resolve host: api-3t(6)
body: <p>I am trying to test paypal express checkout with a tutorial I found.</p>
  
  <p>I am working with php on my local pc.</p>
  
  <p>I am using Firefox to test.</p>
  
  <p>When calling paypal, I get this error back:
  SetExpressCheckout failed: Could not resolve host: api-3t(6)</p>
  
  <p>I tried a solution from a post here that says: switching nameservers to Google Public DNS at 8.8.8.8 and 8.8.4.4</p>
  
  <p>That didn't help</p>
  
  <p>My code:</p>
  
  <pre><code>$API_Endpoint = "https://api-3t/".$GLOBALS['paypal_mode'].".paypal.com/nvp";
      $version = urlencode('124.0');
  
      // Set the curl parameters.
      $ch = curl_init();
      curl_setopt($ch, CURLOPT_URL, $API_Endpoint);
      curl_setopt($ch, CURLOPT_VERBOSE, 1);
  
      // Turn off the server and peer verification (TrustManager Concept).
      curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
      curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  
      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
      curl_setopt($ch, CURLOPT_POST, 1);
  
      // Set the API operation, version, and API signature in the request.
      $nvpreq = "METHOD=$methodName_&amp;VERSION=$version&amp;PWD=$API_Password&amp;USER=$API_UserName&amp;SIGNATURE=$API_Signature$nvpStr_";
  
  
      // Set the request as a POST FIELD for curl.
      curl_setopt($ch, CURLOPT_POSTFIELDS, $nvpreq);
  
      // Get response from the server.
      $httpResponse = curl_exec($ch);
  </code></pre>
  
  <p>Can someone please help?</p>
  
  <p>Thank you</p>