Closed lukas-staab closed 2 years ago
Hi,
is there any possibility to implement flicker version 1.3.*? Our Sparkassen doesn't support 1.4 and don't want to implement it.
Sure its possible, not sure how fast tho (by me). If you want to try it yourself let me know I could give you some pointers.
Hello everyone, right now I have a running implementation for rendering Flicker Tans, i will open a pull request soon, but before I wish to have some Feedback how to do it. Right now I implemented it with an animated SVG, which should be a good compromise for both Backend and Frontend usage (I think). There is no JS or CSS involved in the implementation, I used only the
animate
-tag from SVG for the flickering. Therefore I used this composer dependency php-svg. I have not checked this repo for anything security wise, it was just the first I found and simple to use. I think another option would be using .gif files. A html canvas with some JS Code for the painting did not seem like a good option for me.I think reimplementing of the features would not be a big issue, due to the low complexity of the resulting svg - but of course I would only do it if you think I/we should prevent 3rd party dependencies or not.
Here is the code of an example svg. I cannot embed it here (as far as I know) because github disabled user generated svgs because of XXS vulnerabilities, also SVG File attachments are not allowed for the same reason :(. Just copy the following content to a .svg file, save it and open it with your browser. It should work out of the box and your TAN Generator will give you a TAN for some dummy data (Transfer to Kontonr: 123456789 with amount of 0,01€). There is no JS code inside (as you can see), so don't worry about the XXS here. If your TAN Generator is bigger or smaller, just change the width (and height) ONLY in the first line of the svg. It will rescale then to your new given dimensions.
Would appreciate some feedback from the Maintainers / Contributors and everyone else. @nemiah