1
I have the following question: I bought the type A1 certificate to issue electronic tax notes at the city hall here in Florianopolis. I have already integrated my entire system with the City Hall API and the way to generate Nfe is very simple: I perform a POST containing an XML and ready, the City Hall will generate Nfe.
My question is the following: at the end of the XML file there are several lines that I need to fill in the format below. How do I get these lines using PHP and the A1 certificate? I searched a lot on the internet and did not discover how that Gero this end of the XML file.
For example, at the end of the XML file I have to fill in a field like this:
<ds:Reference Id="RefElement-3.496850484729869E7" URI="">
How do I set the Refelement value?
Elsewhere in XML I need to fill this line:
<ds:DigestValue>KsPAoHg2H0y/wSrrOGRihebcE/g=</ds:DigestValue>
How do I value this from my A1 digital certificate?
Take a look at this project and help: https://github.com/nfephp-org/sped-nfe .
– LeonanCarvalho
thanks friend. I took a look at the methods but it is very confusing, has many technical terms even in the comments!
– Samul
I understood, but in this line of certification there are not very simple things, they are advanced topics.
– LeonanCarvalho