/** * Send the request with specified data * * @param mixed $data The data to send * * @return ResponseInterface * @throws InvalidRequestException */ public function sendData($data) { $request = new LegacyNotifyRequest($this->httpClient, $this->httpRequest); $request->initialize($this->parameters->all()); $request->setParams($data); $request->setSort(false); $request->setAlipayPublicKey($this->getAlipayPublicKey()); /** * @var LegacyNotifyResponse $response */ $response = $request->send(); return $response; }