$name, ]); $body = static::responseBody($response); Ricevuta::store($name, $body['content']); } return $name; } public static function processReceipt($filename) { $response = static::request('POST', 'notifica_xml_salvata', [ 'filename' => $filename, ]); $body = static::responseBody($response); $result = true; if ($body['status'] != '200') { $result = $body['status'].' - '.$body['message']; } return $result; } }