API ReferenceFunctions
attachProtocol()
@finopenpos/fiscal / attachProtocol
function attachProtocol(requestXml, responseXml): string;Defined in: complement.ts:43
Attach the SEFAZ authorization protocol to a signed NFe XML,
producing the nfeProc wrapper required for storage and DANFE.
produzindo o wrapper nfeProc necessário para armazenamento e DANFE.
Output format:
<nfeProc xmlns="..." versao="4.00">
<NFe>...</NFe>
<protNFe>...</protNFe>
</nfeProc>Parameters
| Parameter | Type | Description |
|---|
Returns
string
The nfeProc XML string