Hola, estuve probando tu libreria y en modo de testeo puedo usarla bien, pero en modo produccion no.
tengo el key y el certificado, lo autorice en la pagina de afip y obtuve el otro certificado, todo bien hasta ahi. Pero me da error.
Obtuvo los TA en modo test, entonces al pasar a modo produccion da este error:
[fcgid:warn] [pid 1239] [client **IP**:58484] mod_fcgid: stderr: PHP Fatal error: Uncaught Exception: (600) ValidacionDeToken: Error al verificar hash: VerificacionDeHash: No valid\xc3\xb3 la firma digital. in /home/web/public_html/afiptest/src/Class/ElectronicBilling.php:364
[fcgid:warn] [pid 1239] [client **IP**:58484] mod_fcgid: stderr: Stack trace:
[fcgid:warn] [pid 1239] [client **IP**:58484] mod_fcgid: stderr: #0 /home/web/public_html/afiptest/src/Class/ElectronicBilling.php(308): ElectronicBilling->_CheckErrors('FECompUltimoAut...', Object(stdClass))
[fcgid:warn] [pid 1239] [client **IP**:58484] mod_fcgid: stderr: #1 /home/web/public_html/afiptest/src/Class/ElectronicBilling.php(41): ElectronicBilling->ExecuteRequest('FECompUltimoAut...', Array)
[fcgid:warn] [pid 1239] [client **IP**:58484] mod_fcgid: stderr: #2 /home/web/public_html/afiptest/src/t1.php(79): ElectronicBilling->GetLastVoucher(1, 11)
[fcgid:warn] [pid 1239] [client **IP**:58484] mod_fcgid: stderr: #3 {main}
[fcgid:warn] [pid 1239] [client **IP**:58484] mod_fcgid: stderr: thrown in /home/web/public_html/afiptest/src/Class/ElectronicBilling.php on line 364
Supuse que este era el error, el hecho de tener unos TA hechos en modo de prueba, asi que los borre, y dio este otro error:
[fcgid:warn] [pid 1261] [client **IP**:58840] mod_fcgid: stderr: PHP Fatal error: Uncaught Exception: SOAP Fault: ns1:cms.cert.untrusted
[fcgid:warn] [pid 1261] [client **IP**:58840] mod_fcgid: stderr: Certificado no emitido por AC de confianza
[fcgid:warn] [pid 1261] [client **IP**:58840] mod_fcgid: stderr: in /home/web/public_html/afiptest/src/Afip.php:230
[fcgid:warn] [pid 1261] [client **IP**:58840] mod_fcgid: stderr: Stack trace:
[fcgid:warn] [pid 1261] [client **IP**:58840] mod_fcgid: stderr: #0 /home/web/public_html/afiptest/src/Afip.php(171): Afip->CreateServiceTA('wsfe')
[fcgid:warn] [pid 1261] [client **IP**:58840] mod_fcgid: stderr: #1 /home/web/public_html/afiptest/src/Class/ElectronicBilling.php(328): Afip->GetServiceTA('wsfe')
[fcgid:warn] [pid 1261] [client **IP**:58840] mod_fcgid: stderr: #2 /home/web/public_html/afiptest/src/Class/ElectronicBilling.php(304): ElectronicBilling->GetWSInitialRequest('FECompUltimoAut...')
[fcgid:warn] [pid 1261] [client **IP**:58840] mod_fcgid: stderr: #3 /home/web/public_html/afiptest/src/Class/ElectronicBilling.php(41): ElectronicBilling->ExecuteRequest('FECompUltimoAut...', Array)
[fcgid:warn] [pid 1261] [client **IP**:58840] mod_fcgid: stderr: #4 /home/web/public_html/afiptest/src/t1.php(79): ElectronicBilling->GetLastVoucher(1, 11)
[fcgid:warn] [pid 1261] [client **IP**:58840] mod_fcgid: stderr: #5 {main}
[fcgid:warn] [pid 1261] [client **IP**:58840] mod_fcgid: stderr: thrown in /home/web/public_html/afiptest/src/Afip.php on line 230
He buscado y probado todo, no se que puede estar mal.