processResult($request->all()); } catch (InvalidArgumentException $exception) { report($exception); return response('bad signature', 400)->header('Content-Type', 'text/plain'); } catch (Throwable $exception) { report($exception); return response('temporary error', 503)->header('Content-Type', 'text/plain'); } return response('OK'.$invoice->id)->header('Content-Type', 'text/plain'); } }