afaik, Swiss banks offer dedicated QR Code IBAN accounts with unique payment reference numbers so that it’s easier to match payments with invoices.
But it’s possible to generate a QR code for each IBAN, then without a unique reference number.
// Add payment reference
// This is what you will need to identify incoming payments.
$referenceNumber = QrBill\Reference\QrPaymentReferenceGenerator::generate(
$this->company->present()->besr_id() ?: '', // You receive this number from your bank (BESR-ID). Unless your bank is PostFinance, in that case use NULL.
$this->invoice->number// A number to match the payment with your internal data, e.g. an invoice number
I am assuming in these cases if we do not have a BESR_ID number then, we’ll want to pass in the NON version? If yes, I can add this change in .
Please note, if the IBAN requires the BESR id and the besr ID is not provided the QR code will fail to generate. However if the IBAN is a regular one that doesn’t require the BESR, the QR code will generate from my tests.