Invoice QR Code

Hi,

Might already been asked, but nowadays it is possible to enter payments via a QR code in a industry standard. I believe it is not very difficult to add a QR code generator, and the format for QR payments is very easy and described here:

Would it be possible to add a QR code to the invoice template?

i also would be interested in such a feature. did someone accomplish something like that already? :slight_smile:

Hello @kautzy1,

Yes, I did a while ago. :grinning:
You can read about it in the Faq section - User Tutorials / How To’s.
This tutorial allows you to add a QR code in your pdf template file.
https://community2.invoiceplane.com/t/topic/9877

I just finished another QR code implementation that allows your customers to view their invoice via a public link (e.g. sent via email) AND there via a button to view the QR code in a modal window (and of course pay directly)…

Here’s a screenshot to give you an impression of what this looks like.

1 Like

Version 1.1 of the SEPA Payment Acount Access scheme rulebook which was published on 26 June 2023 will come into effect on 30 November 2023.

Regarding One-Leg Out Instant Credit Transfer (OCT Inst)
rulebook ISO 20022 XML message standards based on version 1.1 of the 2023 One-Leg Out Instant Credit Transfer (OCT Inst) rulebook, which enters into force on 28 November 2023 at 08:00 CET, number of banks that curently support it is 100% in Slovenia (in other countries less) and in Hungary curently 0%.

Other countries fall in between 0 and 100%.

Same is with Instant Credit Transfer which is still not widely impemented.

Certain countries have mandatory law for QR code to be on Invoice, BUT
THIS QR CODE IS NOT FOR PAYMENT. IT HAS REFFERENT STRING AND URL TO TAX AUTORITY WEB SO THAT BUYER CAN CHECK IF INVOICE WAS FISCALISED (THRU TAX AUTORITY SERVER OR NOT). Such QR code does not include any payee or payment receiver information we have in Invoices. so that you understant that NOT ALL QR CODES ARE CREATED EQUAL.

Various types of QR code exist and it is also as PDF417 - a 2D code.

Demos of 1D codes are obsoloete. If anyone is trying to include 2D codes into Quotes/ Invoices, it would better start with PDF417. PDF417 is used in all Eurozone countries and elsewhere as machine-readable payment data code.

After PDF417 is integrated, since conversion of PDF417 to QR 2D payment instruction code (ISO 22000 compliant) when all banks would support it, would be very easy.

Customisation of QR code (color, logo inclusion etc…) depend on legal limitations in specific countries (if that is allowed or not), see appropriate EPC documentation for specific market.

SEPA v2 as a QR demo some users in community/github tried to create is not yet standardised by EPC and is not mandatory for banks to “read” and “accept” to use for payments yet.

Do you mean for the invoice link?

  1. OPEN FILE application > modules > invoices > view > views.php.
  2. SEARCH <?php if ($invoice->invoice_status_id != 1) { ?>
  3. AFTER PASTE
<img src="https://chart.googleapis.com/chart?chs=320x320&cht=qr&chl=<?php echo site_url('guest/view/invoice/' . $invoice->invoice_url_key) ?>&choe=UTF-8" title="QR Code to <?php _trans('guest_url'); ?>" />
  1. Save and upload.
2 Likes

Awesome, can you assist me how to put same as above on pdf.

You can add this to your invoice template if that’s the purpose

<code><img src="https://chart.googleapis.com/chart?chs=320x320&cht=qr&chl={{{invoice_guest_url}}}&choe=UTF-8" title="QR Code to {{{invoice_guest_url}}}" /></code>

Otherwise, a dirty quick way is pasting this to your templates under application/views/invoice_templates/pdf/InvoicePlane.php:

  1. SEARCH:

<footer>

  1. AFTER ADD:
<div id="company">
<b>QR Code to this <?php _trans('invoice'); ?></b>
    <img src="https://chart.googleapis.com/chart?chs=150x150&cht=qr&chl=<?php echo base_url().'index.php/guest/view/invoice/'.$invoice->invoice_url_key; ?>&choe=UTF-8" title="QR Code to <?php _trans('invoice'); ?>" />
</div>```
3.SAVE & UPLOAD.

Or try replacing the logo <?php echo invoice_logo_pdf(); ?> for example at the top.

@australopythecus this is an interesting possibility to use a qrcode (and/or dashboard charts).
But why put a qrcode, with the url to your invoice template, when you have all the information available to directly put a qrcode with the payment details on your (pdf/web) invoice templates?
I’m just curious as to why you would do this…

I.e. if I’m doing an invoice for my customer on the spot and I want him/her to scan straight to check it without having to send an sms or share any other infomation, just a name and invoiced items.

But can be also to avoid customers seen the URL, for example I trade under 3 business names but InvoicePlane is installed just on one domain, if I sent my ozroofracks.com.au customer and URL from websitesbuilder.com.au (where InvoicePlane is installed) they might think that is something suspicious because of the mismatching domain name. A QRCode avoid sharing that URL directly (even when might be visible on the browser or not laer on).

There are more possibilities…

Thank you for your response.
These are all good situation to apply this.
Maybe I can also use this in the near future…