diff --git a/src/DotpayApi/Client.php b/src/DotpayApi/Client.php index 674f800..4c69992 100644 --- a/src/DotpayApi/Client.php +++ b/src/DotpayApi/Client.php @@ -27,7 +27,7 @@ public function makeRequest(IRequest $request) $this->password ], 'headers' => ['content-type' => 'application/json', 'Accept' => 'application/json'], - 'json' => $request->toArray() + 'body' => json_encode($request->toArray(), 320) ]; return json_decode($this->client->request($request->method(),$this->base_url.$request->path(), $options)->getBody()); }