Skip to content

Commit 9c08690

Browse files
authored
Merge pull request #23 from Swahjak/fix-22
Fixes #22 RestRefundRequest::sendData doesn't set response data as array
2 parents 9163f9b + 51b3cbe commit 9c08690

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Message/RestRefundRequest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,13 @@ public function sendData($data)
6767
$httpResponse = $this->sendRequest(
6868
'POST',
6969
'/orders/' . $data['id'] . '/refunds',
70+
null,
7071
$data
7172
);
7273

7374
$this->response = new RestRefundResponse(
7475
$this,
75-
$httpResponse
76+
$httpResponse->json()
7677
);
7778

7879
return $this->response;

0 commit comments

Comments
 (0)