/** * 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); }
/** * 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); }