diff --git a/Paystack.php b/Paystack.php index b0ac22e..05a5d16 100644 --- a/Paystack.php +++ b/Paystack.php @@ -655,14 +655,6 @@ private function parsePaystackPaystackHttpResponse() { $resp = \json_decode($this->body); - if ($resp === null || !property_exists($resp, 'status') || !$resp->status) { - throw new ApiException( - "Paystack Request failed with Response: '" . - $this->messageFromApiJson($resp)."'", - $resp - ); - } - return $resp; } @@ -697,9 +689,6 @@ public function wrapUp() if ($this->okay && $this->forApi) { return $this->parsePaystackPaystackHttpResponse(); } - if (!$this->okay && $this->forApi) { - throw new \Exception($this->implodedMessages()); - } if ($this->okay) { return $this->body; }