For those of you who, like me, want to put a QRCode on your invoices, you should read on.
Please know that I have no experience in program development…
I first looked around a bit to see what is already available within IP/Mpdf and found the library Barcode in there. In the file “example37_barcodes.php” I found the “QrCode” reference.
I then manually tweaked the dev version of the library QrCode a bit to get this working.
Then I added the “style items - .barCode and/or .barcodecell” in the css file and finally I inserted the following code in my pdf template.
Hi, how and where did you include this in InvoicePlane files and folder?
Only in one view.php? Where did you copy all files?
Can you share all files you installed or changed inside InvoicePlane?
At the time I wrote the FAQ, I was using IP v1.5.9 where the QrCode lib was still present in mPDF.
As of mPDF 8.0 (and IP v1.5.11), the QrCode lib was no longer available.
How can you make this work now?
It looks like my procedure is working and generating a QR-code.
I have no idea what you mean by “expired”.
I think/suspect it could have something to do with the content/data of the QR-code itself.
Please read the pdf document in this link (EPC document - EPC069) carefully to see if your problem is related to the content.
It is absolutely important to know which version (V1 or V2) your bank is using and in which EU country you are using the banking app (BIC mandatory for non-EEA contries).
Please comply with the limitations listed in the data elements table of this document.
If necessary, check which example (pg 4 V1 or pg 5 V2) does work in your banking app.
Another V1 example:
BCD
001
1
SCT
BPOTBEB1
Red Cross of Belgium
BE72000000001616
EUR1
Urgency fund
Sample EPC QR code
The same example but now V2: (Do you see the difference?)
BCD
002
1
SCT
Red Cross of Belgium
BE72000000001616
EUR1
Urgency fund
Sample EPC QR code
Additionally, you can also possibly take a screenshot of your QR-code and decode it in this app (QR Decode).
You can encode your text with the same web app and then see how your banking app handles it.
Also be sure to check if your text is encoded correctly in your QR code and what character set is used!