Hi I have the same problem and as far as I can tell i have all fields filled out. Where is the source code for the swiss_qr implementation, so I could have a look at what I’m missing.
@david
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
);
$qrBill->setPaymentReference(
QrBill\DataGroup\Element\PaymentReference::create(
QrBill\DataGroup\Element\PaymentReference::TYPE_QR,
$referenceNumber
));
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 .
In the latest release I have put a fix in for this, so if you don’t have the BESR, it should generate the QR, let us know if this is not functioning as you expect.
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.