Skip to content

Commit

Permalink
Merge pull request #23 from Swahjak/fix-22
Browse files Browse the repository at this point in the history
Fixes #22 RestRefundRequest::sendData doesn't set response data as array
  • Loading branch information
delatbabel committed Apr 9, 2017
2 parents 9163f9b + 51b3cbe commit 9c08690
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Message/RestRefundRequest.php
Expand Up @@ -67,12 +67,13 @@ public function sendData($data)
$httpResponse = $this->sendRequest(
'POST',
'/orders/' . $data['id'] . '/refunds',
null,
$data
);

$this->response = new RestRefundResponse(
$this,
$httpResponse
$httpResponse->json()
);

return $this->response;
Expand Down

0 comments on commit 9c08690

Please sign in to comment.