Exemplo n.º 1
0
 /**
  * Send the request with specified data
  *
  * @param  mixed $data The data to send
  *
  * @return ResponseInterface
  */
 public function sendData($data)
 {
     $curl_options = ['cert' => true, 'ssl_cert_path' => $this->getSslCertPath(), 'ssl_key_path' => $this->getSslKeyPath()];
     $result = parent::sendData($data, $curl_options);
     return $this->response = new RedPackResponse($this, $result);
 }
Exemplo n.º 2
0
 /**
  * Send the request with specified data
  *
  * @param  mixed $data The data to send
  *
  * @return ResponseInterface
  */
 public function sendData($data)
 {
     $result = parent::sendData($data);
     return $this->response = new UnifiedOrderResponse($this, $result);
 }