withToken($token) ->acceptJson() ->timeout(8) ->retry(2, 200, throw: false) ->get('/subscriptions/'.$id); if (! $response->successful()) { throw new RuntimeException('Paddle lookup failed (HTTP '.$response->status().').'); } $data = $response->json('data'); if (! is_array($data)) { throw new RuntimeException('Unexpected Paddle response.'); } return $data; } }