Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

387
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda