diff --git a/src/Client.php b/src/Client.php index 680326d..d3d67c0 100644 --- a/src/Client.php +++ b/src/Client.php @@ -284,7 +284,7 @@ class Client ); $data = json_decode((string)$response->getBody(), true); sleep(1); - } while ($maxAttempts < 0 && $data['status'] == 'pending'); + } while ($maxAttempts > 0 && $data['status'] == 'pending'); return (isset($data['status']) && $data['status'] == 'valid'); }