Skip to content

Commit acdea45

Browse files
authored
Merge pull request #87 from maxsky/patch-1
2 parents b43d121 + a0a5401 commit acdea45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Message/QueryRefundRequest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ public function setRefundId($refundId)
153153
*/
154154
public function sendData($data)
155155
{
156-
$request = $this->httpClient->post($this->endpoint)->setBody(Helper::array2xml($data));
157-
$response = $request->send()->getBody();
156+
$request = $this->httpClient->request('post', $this->endpoint, [], Helper::array2xml($data));
157+
$response = $request->getBody();
158158
$responseData = Helper::xml2array($response);
159159

160160
return $this->response = new QueryRefundResponse($this, $responseData);

0 commit comments

Comments
 (0)