/**
  * Communicate with the paypal endpoint
  */
 private function postData($endpoint, $fields)
 {
     return Http::post('https://' . $endpoint, function ($http) use($fields) {
         $http->noRedirect();
         $http->timeout(30);
         $http->data($fields);
     });
 }
Exemple #2
0
 /**
  * Make a HTTP POST call.
  *
  * @param string $url
  * @param array $options
  * @return self 
  * @static 
  */
 public static function post($url, $options = null)
 {
     return \October\Rain\Network\Http::post($url, $options);
 }