/** * Send the request with specified data * * @param mixed $data The data to send * * @return ResponseInterface */ public function sendData($data) { $responseData = Helper::post($this->endpoint, $data); return $this->response = new CloseOrderResponse($this, $responseData); }
/** * Send the request with specified data * * @param mixed $data The data to send * * @return ResponseInterface */ public function sendData($data) { $responseData = Helper::post($this->endpoint, $data); return $this->response = new QueryRefundResponse($this, $responseData); }
/** * Send the request with specified data * * @param mixed $data The data to send * * @return ResponseInterface */ public function sendData($data) { $responseData = Helper::post($this->endpoint, $data); return $this->response = new ShortenUrlResponse($this, $responseData); }
/** * Send the request with specified data * * @param mixed $data The data to send * * @return ResponseInterface */ public function sendData($data) { $options = array(CURLOPT_SSL_VERIFYPEER => true, CURLOPT_SSL_VERIFYHOST => 2, CURLOPT_SSLCERTTYPE => 'PEM', CURLOPT_SSLKEYTYPE => 'PEM', CURLOPT_SSLCERT => $this->getCertPath(), CURLOPT_SSLKEY => $this->getKeyPath()); $responseData = Helper::post($this->endpoint, $data, 3, $options); return $this->response = new CloseOrderResponse($this, $responseData); }