Skip to content

Commit a0a5401

Browse files
authored
Update QueryRefundRequest.php
Fixed qureyRefund() exception with ``` Call to undefined method Omnipay\Common\Http\Client::post() ```
1 parent b43d121 commit a0a5401

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)