Skip to content

Commit

Permalink
Fixed response
Browse files Browse the repository at this point in the history
  • Loading branch information
kg-bot committed Aug 19, 2019
1 parent da2e1d2 commit 0067a58
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Models/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ public function createShipment()
{
return $this->request->handleWithExceptions(function () {

$response = $this->request->client->post("{$this->entity}/{$this->{$this->primaryKey}}/create-shipment")
->getBody()
->getContents();
$response = json_decode((string)$this->request->client->post("{$this->entity}/{$this->{$this->primaryKey}}/create-shipment")
->getBody());

return new OrderShipment($this->request, $response->order_shipment);
});
Expand Down

0 comments on commit 0067a58

Please sign in to comment.