This commit is contained in:
Thomas Zilio 2018-12-07 11:36:21 +01:00
parent dcdbb6b64c
commit c56df15e97
2 changed files with 8 additions and 1 deletions

View File

@ -42,6 +42,8 @@ class XML
/**
* Removes the PKCS#7 header and the signature info footer from a digitally-signed .xml.p7m file using CAdES format.
*
* TODO: controllare il funzionamento con gli allegati.
*
* @param string $string File content
* @return string An arguably-valid XML string with the .p7m header and footer stripped away.
*

View File

@ -11,7 +11,7 @@ use Respect\Validation\Validator as v;
*/
class Validate
{
public static function VatCheck($partita_iva)
public static function vatCheck($partita_iva)
{
if ($partita_iva === '') {
return true;
@ -54,6 +54,11 @@ class Validate
return true;
}
// Controllo sulla sintassi
if (!static::vatCheck($vat_number)) {
return false;
}
// Controllo con API europea ufficiale
if (extension_loaded('soap')) {
try {