Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

384
Views
Could not resolve host: api-3t.sandbox.paypal.com

I am trying to implement paypal pro credit card payment in php

I get following error no matter what i do.

  • Could not resolve host: api-3t.sandbox.paypal.com

Its a DNS problem of computer I think. But are there any chances of CODE being wrong?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

I got it working. It was about using proxy. Had to configure proxy Host and port , username and password for it. My sample code for that is as following.

 class classname
 {
 var $useProxy = TRUE;
 var $proxyHost = '192.135.2.1';//your host
 var $proxyPort = 0000;//your port

 public function(Params){

 curl_setopt($ch, CURLOPT_PROXYTYPE, 'HTTP');
 curl_setopt($ch, CURLOPT_PROXY, $this->proxyHost.":".$this->proxyPort); 
 curl_setopt($ch, CURLOPT_PROXYUSERPWD, "user:password"); //username:pass 

 }

PS: or you could just use it without classes and functions.

Hope it helps!

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!