smhg / sepa-qr-data-php Goto Github PK
View Code? Open in Web Editor NEWGenerate QR code data for SEPA payments
License: MIT License
Generate QR code data for SEPA payments
License: MIT License
There's a "standard" in Austria to add a rounded border with some text in it, around the QR code - see https://www.stuzza.at/de/zahlungsverkehr/qr-code.html
It looks like in Germany they have this too: https://www.girocode.de/girocodetools/pages/girosolution/ and on https://en.wikipedia.org/wiki/EPC_QR_code some other countries are mentioned as well.
I already suggested this at endroid/qr-code#313 - just mentioning this here in case somebody is interested... ;-)
See e.g. https://github.com/smhg/sepa-qr-data-php#setbicbic
I figure you've copied this from the EPC PDF. Do you know what it stands for?
The data I'm passing contains only ASCII characters. And my PHP file is UTF-8.
However, when I do ->setCharacterSet(SepaQrData::UTF_8)
it doesn't work (at least with the banking app I'm trying), but when I do ->setCharacterSet(SepaQrData::ISO8859_1)
, it does. Why?
And why is the QR code changing at all? And does this setting have to be the same as the setting you pass to endroid/qr-code, or does one (which?) override the other or doesn't it matter?
BIC code can be either 8 characters long or 11 characters long
SepaQr\Data->setBic($bic) allows BIC code to be from 8 to 11 characters long (9 and 10 character long codes are invalid).
ref: https://www.swift.com/standards/data-standards/bic-business-identifier-code
Clarify that:
Very informative. I have not dealt with sepa before.
But I noticed one small problem.
My bank app (Revolut: bank with multiple currencies and my account in Euro) did not accept the qr-code without amount. I found out that the missing currency is responsible for this.
Changing the line:
to specify the currency without amount solved it. But I was still not satisfied.
After creating the function "setCurrency" and other additions, you can now choose between several currencies.
Some other changes (preg_replace...) are only for demonstration and/or are alternatives to aborts. Checks could also be done before commit.
Have a look at it on:
Multiple currencies
This seems to be a good reference: https://www.iso20022.org/iso-20022-message-definitions
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.