Esempio n. 1
0
 /**
  * @return HTTPRequest
  */
 private function response($data)
 {
     $r = new HTTPRequest($this->host, $this->endpoint, 'POST', true);
     $result = $r->connect($data);
     if ($result < 400) {
         return $r;
     }
     return false;
 }
 protected function response($data)
 {
     $request = new HTTPRequest($this->gateway->getHost(), $this->endpoint, 'POST', true);
     $result = $request->connect($data);
     if ($result < 400) {
         return $request;
     }
     return false;
 }
Esempio n. 3
0
 /**
  * @return HTTPRequest
  */
 function response($data)
 {
     $r = new HTTPRequest($this->host, $this->endpoint, 'POST', true);
     $result = $r->connect($data);
     if ($result->paypalUserName) {
         $data['PWD'] = $this->paypalPassword;
     }
     $data['SIGNATURE'] = $this->paypalSignature;
     $data['VERSION'] = '51.0';
     if (!function_exists('http_build_query')) {
         $query = $this->http_build_query_php4($data);
     } else {
         $query = http_build_query($data);
     }
     return $query;
 }